]> git.jsancho.org Git - lugaru.git/commitdiff
This ugly hack makes text input usable on fast systems. :(
authorRyan C. Gordon <icculus@icculus.org>
Thu, 18 Feb 2010 15:22:01 +0000 (10:22 -0500)
committerRyan C. Gordon <icculus@icculus.org>
Thu, 18 Feb 2010 15:22:01 +0000 (10:22 -0500)
Source/GameDraw.cpp

index 700ef1190ca9d70121cfdc638c2bba8471ecb04f..16d845a53b35d1ee0126818af9a8123ee56c81ae 100644 (file)
@@ -2218,6 +2218,10 @@ int Game::DrawGLScene(void)
        }
 
        if(mainmenu){
+#if USE_SDL
+        // !!! FIXME: hack: clamp framerate in menu so text input works correctly on fast systems.
+        SDL_Delay(15);
+#endif
                glDrawBuffer(GL_BACK);
                glReadBuffer(GL_BACK);
                glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );