From: Ryan C. Gordon Date: Thu, 18 Feb 2010 15:22:01 +0000 (-0500) Subject: This ugly hack makes text input usable on fast systems. :( X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=e59412fcecd6b211e56ad526d22e3276f4c12eff;p=lugaru.git This ugly hack makes text input usable on fast systems. :( --- 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 );