From e59412fcecd6b211e56ad526d22e3276f4c12eff Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 18 Feb 2010 10:22:01 -0500 Subject: [PATCH] This ugly hack makes text input usable on fast systems. :( --- Source/GameDraw.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index 700ef11..16d845a 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -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 ); -- 2.39.5