In SDL version command line, don't look for depth in -resolution

-showusage says, and the Windows version looks for,
"<width>x<height>[@<refreshrate>]", but the SDL version was scanning for
"<width>x<height>[x<depth>][@<refreshrate>]", with the effect of
silently ignoring refreshrate if depth was omitted. And if given, the
depth didn't appear to be used anywhere anyway.
This commit is contained in:
Daniel Lopez 2015-06-13 23:09:33 +01:00
parent cda571268b
commit d77295b722

View File

@ -756,6 +756,6 @@ static void get_resolution(const char *defdata, const char *data, osd_window_con
data = defdata;
}
if (sscanf(data, "%dx%dx%d@%d", &config->width, &config->height, &config->depth, &config->refresh) < 2 && report_error)
if (sscanf(data, "%dx%d@%d", &config->width, &config->height, &config->refresh) < 2 && report_error)
osd_printf_error("Illegal resolution value = %s\n", data);
}