From aba74d29399fe11d1b393402ff7cdc9ab6d98297 Mon Sep 17 00:00:00 2001 From: markgrebe Date: Fri, 18 Feb 2005 23:33:32 +0000 Subject: [PATCH] In the init function, set the number of screen modes to zero before they are calculated, as this was causing a problem with the Macintosh version when the game was reset, or a new game was started git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@363 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/common/FrameBufferGL.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stella/src/common/FrameBufferGL.cxx b/stella/src/common/FrameBufferGL.cxx index 7fadaa41d..af2866044 100644 --- a/stella/src/common/FrameBufferGL.cxx +++ b/stella/src/common/FrameBufferGL.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FrameBufferGL.cxx,v 1.11 2005-02-13 19:17:01 stephena Exp $ +// $Id: FrameBufferGL.cxx,v 1.12 2005-02-18 23:33:32 markgrebe Exp $ //============================================================================ #include @@ -184,6 +184,7 @@ bool FrameBufferGL::init() } // Get the valid OpenGL screenmodes + myScreenmodeCount = 0; myScreenmode = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_OPENGL); if((myScreenmode != (SDL_Rect**) -1) && (myScreenmode != (SDL_Rect**) 0)) for(uInt32 i = 0; myScreenmode[i]; ++i)