From cd19b2c7a990f96b52231984a3c9059967cbff71 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 23 Apr 2010 06:52:27 +0000 Subject: [PATCH] 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@121 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_vidsdl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 71b04c16..ba7b2734 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -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