From: Samual Lenks Date: Sat, 14 Sep 2013 20:06:29 +0000 (-0400) Subject: Minor fix X-Git-Tag: xonotic-v0.8.0~332^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5716bc7d16d06ab005347ea35d707a4645d5fce3;p=xonotic%2Fxonotic-data.pk3dir.git Minor fix --- diff --git a/qcsrc/menu/xonotic/slider_resolution.c b/qcsrc/menu/xonotic/slider_resolution.c index b08aac86f..01fd64e10 100644 --- a/qcsrc/menu/xonotic/slider_resolution.c +++ b/qcsrc/menu/xonotic/slider_resolution.c @@ -72,10 +72,10 @@ void XonoticResolutionSlider_addResolution(entity me, float w, float h, float pi me.addValue(me, strzone(sprintf(_("%dx%d"), w, h)), strzone(strcat(ftos(w), " ", ftos(h), " ", ftos(pixelheight)))); // FIXME (in case you ever want to dynamically instantiate this): THIS IS NEVER FREED } +float autocvar_menu_vid_allowdualscreenresolution; void XonoticResolutionSlider_configureXonoticResolutionSlider(entity me) { float i; - float autocvar_menu_vid_allowdualscreenresolution = 0; vector r0, r; me.configureXonoticTextSlider(me, "_menu_vid_width"); @@ -94,7 +94,7 @@ void XonoticResolutionSlider_configureXonoticResolutionSlider(entity me) if(r_x < 640 || r_y < 480) continue; if(r_x > 2 * r_y) // likely dualscreen resolution, skip this one - if(autocvar_menu_vid_allowdualscreenresolution == 0) + if(autocvar_menu_vid_allowdualscreenresolution <= 0) continue; me.addResolution(me, r_x, r_y, r_z);