From c973c3d9686e0e7f85b518e6f7c2a1af80f9a8ee Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 4 Dec 2006 19:01:39 +0000 Subject: [PATCH] This code is a little more compact and readable. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1176 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/common/FrameBufferGL.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/stella/src/common/FrameBufferGL.cxx b/stella/src/common/FrameBufferGL.cxx index 0194d5e7b..a13370b64 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.69 2006-12-04 18:54:51 stephena Exp $ +// $Id: FrameBufferGL.cxx,v 1.70 2006-12-04 19:01:39 stephena Exp $ //============================================================================ #ifdef DISPLAY_OPENGL @@ -336,10 +336,8 @@ bool FrameBufferGL::createScreen() // There's no guarantee this is supported on all hardware // We leave it to the user to test and decide - if(myOSystem->settings().getBool("gl_vsync")) - SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 1 ); - else - SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 0 ); + int vsync = myOSystem->settings().getBool("gl_vsync") ? 1 : 0; + SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, vsync ); // Set the screen coordinates GLdouble orthoWidth = 0.0;