From d77295b722fe2e784a761c467ac5613ebca0aae8 Mon Sep 17 00:00:00 2001 From: Daniel Lopez Date: Sat, 13 Jun 2015 23:09:33 +0100 Subject: [PATCH] In SDL version command line, don't look for depth in -resolution -showusage says, and the Windows version looks for, "x[@]", but the SDL version was scanning for "x[x][@]", with the effect of silently ignoring refreshrate if depth was omitted. And if given, the depth didn't appear to be used anywhere anyway. --- src/osd/sdl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/sdl/video.c b/src/osd/sdl/video.c index fa0c8e28bb4..f5b9b115acc 100644 --- a/src/osd/sdl/video.c +++ b/src/osd/sdl/video.c @@ -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); }