diff options
Diffstat (limited to 'src/osd/sdl/video.c')
-rw-r--r-- | src/osd/sdl/video.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/osd/sdl/video.c b/src/osd/sdl/video.c index d0cab0678c7..356e84a4b35 100644 --- a/src/osd/sdl/video.c +++ b/src/osd/sdl/video.c @@ -477,7 +477,7 @@ sdl_monitor_info *sdl_monitor_info::pick_monitor(sdl_options &options, int index aspect = get_aspect(options.aspect(), options.aspect(index), TRUE); // look for a match in the name first - if (scrname != NULL) + if (scrname != NULL && (scrname[0] != 0)) { for (monitor = sdl_monitor_info::list; monitor != NULL; monitor = monitor->next()) { @@ -654,12 +654,12 @@ void sdl_osd_interface::extract_video_config() video_config.filter = options().filter(); #endif + if (video_config.prescale < 1 || video_config.prescale > 3) + { + osd_printf_warning("Invalid prescale option, reverting to '1'\n"); + video_config.prescale = 1; + } #if (USE_OPENGL) - if (video_config.prescale < 1 || video_config.prescale > 3) - { - osd_printf_warning("Invalid prescale option, reverting to '1'\n"); - video_config.prescale = 1; - } // default to working video please video_config.forcepow2texture = options().gl_force_pow2_texture(); video_config.allowtexturerect = !(options().gl_no_texture_rect()); |