mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
aefda7ca67
commit
e89700a400
1 changed files with 7 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue