mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
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:
parent
cda571268b
commit
d77295b722
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user