From af4e47179edfacdcad6a49d413e14d71df0ac22d Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 29 Sep 2010 22:03:57 +0100 Subject: [PATCH] Kill off fgRequestRedraw --- src/Main/fg_os.hxx | 2 -- src/Main/fg_os_common.cxx | 4 ---- src/Main/main.cxx | 1 - src/Main/splash.cxx | 2 -- 4 files changed, 9 deletions(-) diff --git a/src/Main/fg_os.hxx b/src/Main/fg_os.hxx index ebeb0701b..74d2e468b 100644 --- a/src/Main/fg_os.hxx +++ b/src/Main/fg_os.hxx @@ -69,8 +69,6 @@ void fgWarpMouse(int x, int y); int fgGetKeyModifiers(); -void fgRequestRedraw(); - // // Callbacks and registration API // diff --git a/src/Main/fg_os_common.cxx b/src/Main/fg_os_common.cxx index 91041c3cc..1df935139 100644 --- a/src/Main/fg_os_common.cxx +++ b/src/Main/fg_os_common.cxx @@ -64,9 +64,5 @@ void fgRegisterMouseMotionHandler(fgMouseMotionHandler func) globals->get_renderer()->getEventHandler()->setMouseMotionHandler(func); } -// Redraw "happens" every frame whether you want it or not. -void fgRequestRedraw() -{ -} diff --git a/src/Main/main.cxx b/src/Main/main.cxx index b9c0f194f..03637612e 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -238,7 +238,6 @@ static void fgMainLoop( void ) { SGRawValueFunctions(0, fgSetNewSoundDevice), false); } simgear::AtomicChangeListener::fireChangeListeners(); - fgRequestRedraw(); SG_LOG( SG_ALL, SG_DEBUG, "" ); } diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 19b123488..9152fb26d 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -355,11 +355,9 @@ osg::Node* fgCreateSplashNode() { void fgSplashInit () { SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" ); globals->get_renderer()->splashinit(); - fgRequestRedraw(); } void fgSplashProgress ( const char *text ) { SG_LOG( SG_GENERAL, SG_INFO, "Splash screen progress " << text ); fgSetString("/sim/startup/splash-progress-text", text); - fgRequestRedraw(); }