gl_vidsdl.c (VID_Menu_RebuildBppList): if there are no valid fullscreen

bpps for this width/height, just pick one (fitzquake-0.85 change).


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@121 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-04-23 06:52:27 +00:00
parent aefda7ca67
commit e89700a400

View file

@ -1550,6 +1550,13 @@ void VID_Menu_RebuildBppList (void)
}
}
//if there are no valid fullscreen bpps for this width/height, just pick one
if (vid_menu_numbpps == 0)
{
Cvar_SetValue ("vid_bpp",(float)modelist[0].bpp);
return;
}
//if vid_bpp is not in the new list, change vid_bpp
for (i=0;i<vid_menu_numbpps;i++)
if (vid_menu_bpps[i] == (int)(vid_bpp.value))