From 794823815625121a61cc221864418e12d9affb05 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 30 Mar 2003 19:40:43 +0000 Subject: [PATCH] Declare fgReshape into gui.h --- src/GUI/gui.cxx | 1 - src/GUI/gui.h | 1 + src/GUI/gui_funcs.cxx | 1 - src/GUI/gui_local.cxx | 3 --- src/Input/input.cxx | 3 --- src/Main/main.cxx | 3 --- 6 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/GUI/gui.cxx b/src/GUI/gui.cxx index a12576ce7..425f4c066 100644 --- a/src/GUI/gui.cxx +++ b/src/GUI/gui.cxx @@ -53,7 +53,6 @@ // main.cxx hack, should come from an include someplace extern void fgInitVisuals( void ); -extern void fgReshape( int width, int height ); extern void fgRenderFrame( void ); extern void initDialog (void); diff --git a/src/GUI/gui.h b/src/GUI/gui.h index 10a7a0e1f..c0653673d 100644 --- a/src/GUI/gui.h +++ b/src/GUI/gui.h @@ -89,6 +89,7 @@ extern void ClearRoute(puObject *); extern void fgAPAdjust(puObject *); extern void fgLatLonFormatToggle(puObject *); extern void helpCb(puObject *); +extern void fgReshape(int, int); typedef struct { char *name; diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index 9793cdcc8..4d72f2434 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -100,7 +100,6 @@ SG_USING_STD(cout); // main.cxx hack, should come from an include someplace extern void fgInitVisuals( void ); -extern void fgReshape( int width, int height ); extern void fgRenderFrame( void ); extern void fgHUDalphaAdjust( puObject * ); diff --git a/src/GUI/gui_local.cxx b/src/GUI/gui_local.cxx index 92036557e..018760e98 100644 --- a/src/GUI/gui_local.cxx +++ b/src/GUI/gui_local.cxx @@ -20,9 +20,6 @@ #include "gui.h" #include "trackball.h" -// from main.cxx -extern void fgReshape(int, int); - // FOR MOUSE VIEW MODE // stashed trackball(_quat0, 0.0, 0.0, 0.0, 0.0); static float _quat0[4]; diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 5483fd11b..a6c578e93 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -162,9 +162,6 @@ FGBinding::fire (double setting) const // Implementation of FGInput. //////////////////////////////////////////////////////////////////////// - // From main.cxx -extern void fgReshape( int width, int height ); - FGInput::FGInput () { diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 7cf2a67f8..ab2ded38f 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -215,9 +215,6 @@ FGGeneral general; static int idle_state = 0; static long global_multi_loop; -// forward declaration -void fgReshape( int width, int height ); - // fog constants. I'm a little nervous about putting actual code out // here but it seems to work (?) static const double m_log01 = -log( 0.01 );