]> git.mxchange.org Git - flightgear.git/commitdiff
Moved winWidth and winHeight out of FGViewer since these are set on a
authorcurt <curt>
Thu, 19 Oct 2000 23:09:33 +0000 (23:09 +0000)
committercurt <curt>
Thu, 19 Oct 2000 23:09:33 +0000 (23:09 +0000)
per-application level.  We can have multiple viewers ...
Cleaned up fov mistake on startup with panel activated.

26 files changed:
src/Airports/runways.cxx
src/Airports/simple.cxx
src/Autopilot/auto_gui.cxx
src/Autopilot/newauto.cxx
src/Cockpit/cockpit.cxx
src/Cockpit/hud.cxx
src/Cockpit/panel.cxx
src/Cockpit/steam.cxx
src/FDM/Balloon.cxx
src/FDM/JSBSim.cxx
src/FDM/flight.cxx
src/GUI/gui.cxx
src/Main/bfi.cxx
src/Main/fg_init.cxx
src/Main/keyboard.cxx
src/Main/main.cxx
src/Main/options.cxx
src/Main/options.hxx
src/Main/splash.cxx
src/Main/viewer.cxx
src/Main/viewer.hxx
src/Main/views.cxx
src/Main/views.hxx
src/NetworkOLK/net_hud.cxx
src/NetworkOLK/network.cxx
src/Scenery/scenery.cxx

index 85639eb0ed001acee7dcb3dc8cadc03ee3be5266..f670192e22eb4d588c5183f5540d628e95acc67f 100644 (file)
@@ -33,8 +33,6 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/fgstream.hxx>
 
-#include <Main/options.hxx>
-
 #include STL_STRING
 #include STL_FUNCTIONAL
 #include STL_ALGORITHM
index 27d9c9baf720e60a13661006fc88cd8a966cf422..5b27837bbe3b027ec71a41b476133371a3bbe45a 100644 (file)
@@ -42,8 +42,6 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/fgstream.hxx>
 
-#include <Main/options.hxx>
-
 #include STL_STRING
 #include STL_FUNCTIONAL
 #include STL_ALGORITHM
index 5987610464608ee24681b194eec99412b7f5846a..472fe94c15cb71f76d382b6b8e76302a5fee403d 100644 (file)
@@ -41,7 +41,6 @@
 #include <Main/bfi.hxx>
 #include <Main/fg_init.hxx>
 #include <Main/globals.hxx>
-#include <Main/options.hxx>
 #include <Navaids/fixlist.hxx>
 
 #include "auto_gui.hxx"
index 3902bfc16a491da3ad4bec3cc8712b7bb49e5bd3..64b664ab4e9b3a27c173b9738152ab0e6b946ae6 100644 (file)
@@ -38,7 +38,6 @@
 #include <FDM/flight.hxx>
 #include <Main/bfi.hxx>
 #include <Main/globals.hxx>
-#include <Main/options.hxx>
 #include <Scenery/scenery.hxx>
 
 #include "newauto.hxx"
index 5cdaee5b087d1b018866b9c70e6389ff4b2fd391..b338a82a01a61c4f1c274515a04dd2864a9520f1 100644 (file)
@@ -30,7 +30,7 @@
 #endif
 
 #include <GL/glut.h>
-#include <simgear/xgl/xgl.h>
+// #include <simgear/xgl/xgl.h>
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -45,7 +45,6 @@
 #include <Include/general.hxx>
 #include <FDM/ADA.hxx>
 #include <Main/globals.hxx>
-#include <Main/options.hxx>
 #include <Scenery/scenery.hxx>
 #include <Time/fg_timer.hxx>
 #include <GUI/gui.h>
@@ -700,8 +699,8 @@ void fgCockpitUpdate( void ) {
         "Cockpit: code " << ac_cockpit->code() << " status " 
         << ac_cockpit->status() );
 
-       int iwidth   = globals->get_current_view()->get_winWidth();
-       int iheight  = globals->get_current_view()->get_winHeight();
+       int iwidth   = globals->get_options()->get_xsize();
+       int iheight  = globals->get_options()->get_ysize();
        float width  = iwidth;
        float height = iheight;
 
@@ -721,33 +720,35 @@ void fgCockpitUpdate( void ) {
 //      sprintf(buf,"%-4.1f  %7.0f  %7.0f", fps, tris, culled);
         sprintf(buf,"%-5.1f", fps);
 
-        glMatrixMode(GL_PROJECTION);
+        glMatrixMode( GL_PROJECTION );
         glPushMatrix();
         glLoadIdentity();
-        gluOrtho2D(0, width, 0, height);
-        glMatrixMode(GL_MODELVIEW);
+        gluOrtho2D( 0, globals->get_options()->get_xsize(),
+                   0, globals->get_options()->get_ysize() );
+        glMatrixMode( GL_MODELVIEW );
         glPushMatrix();
         glLoadIdentity();
 
-        glDisable(GL_DEPTH_TEST);
-        glDisable(GL_LIGHTING);
+        glDisable( GL_DEPTH_TEST );
+        glDisable( GL_LIGHTING );
         
-        glColor3f (0.9, 0.4, 0.2);
+        glColor3f( 0.9, 0.4, 0.2 );
 
         guiFnt.drawString( buf,
-                          // width/2 - guiFnt.getStringWidth(buf)/2,
                           int(width - guiFnt.getStringWidth(buf) - 10),
                            10 );
-        glEnable(GL_DEPTH_TEST);
-        glEnable(GL_LIGHTING);
-        glMatrixMode(GL_PROJECTION);
+        glEnable( GL_DEPTH_TEST );
+        glEnable( GL_LIGHTING );
+        glMatrixMode( GL_PROJECTION );
         glPopMatrix();
-        glMatrixMode(GL_MODELVIEW);
+        glMatrixMode( GL_MODELVIEW );
         glPopMatrix();
     }
 #endif // #ifdef DISPLAY_COUNTER
     
-    xglViewport( 0, 0, iwidth, iheight );
+    glViewport( 0, 0, 
+               globals->get_options()->get_xsize(),
+               globals->get_options()->get_ysize() );
 
     if (current_panel != 0)
       current_panel->update();
index 9f5449ed6c4465203b626dc18360db8ad67e8051..83c8757232ddc01c48d264661ceff81f27d90b31 100644 (file)
@@ -46,7 +46,7 @@
 #include <Aircraft/aircraft.hxx>
 #include <Autopilot/newauto.hxx>
 #include <GUI/gui.h>
-#include <Main/options.hxx>
+#include <Main/globals.hxx>
 #ifdef FG_NETWORK_OLK
 #include <NetworkOLK/network.h>
 #endif
index 74d897d40669e4a8dced475c125fed2c158c62f1..3e371f43e6392b84d98e6163ada299ab51829d78 100644 (file)
@@ -34,7 +34,6 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/fgpath.hxx>
 #include <Main/globals.hxx>
-#include <Main/options.hxx>
 #include <Objects/texload.h>
 
 #include "hud.hxx"
@@ -305,8 +304,8 @@ FGPanel::doMouseAction (int button, int updown, int x, int y)
   }
 
                                // Scale for the real window size.
-  x = int(((float)x / globals->get_current_view()->get_winWidth()) * _winw);
-  y = int(_winh - (((float)y / globals->get_current_view()->get_winHeight())
+  x = int(((float)x / globals->get_options()->get_xsize()) * _winw);
+  y = int(_winh - (((float)y / globals->get_options()->get_ysize())
                   * _winh));
 
                                // Adjust for offsets.
index 33dca63f2968a3f708a4c9c65aeaf2124d291a04..618671e1de04f0e24799ec7dc5616a55de26da14 100644 (file)
@@ -33,8 +33,8 @@
 #include <simgear/math/sg_types.hxx>
 #include <simgear/misc/props.hxx>
 #include <Aircraft/aircraft.hxx>
-#include <Main/options.hxx>
 #include <Main/bfi.hxx>
+#include <Main/globals.hxx>
 #include <NetworkOLK/features.hxx>
 
 FG_USING_NAMESPACE(std);
index 8bd81ecf183b7e3b25a8ac79cb3a7bf39fd9dfe9..581bce04e54b5f1736bd21bcd4cb221ba19f49a8 100644 (file)
@@ -52,7 +52,7 @@ HISTORY
 
 #include <Aircraft/aircraft.hxx>
 #include <Controls/controls.hxx>
-#include <Main/options.hxx>
+#include <Main/globals.hxx>
 
 #include "Balloon.h"
 
index b842acda15cf490ab1509c9c0fc3f07cf27d6a4e..88aa606704f15df482ab00198f7a9a793c93bc5f 100644 (file)
@@ -38,7 +38,7 @@
 
 #include <Aircraft/aircraft.hxx>
 #include <Controls/controls.hxx>
-#include <Main/options.hxx>
+#include <Main/globals.hxx>
 
 #include <FDM/JSBSim/FGFDMExec.h>
 #include <FDM/JSBSim/FGAircraft.h>
index df2da8b7add91dfb7ff064063b2d14be90922936..544f9b672ed7c3d9786a8424b1dec64b02696737 100644 (file)
@@ -28,7 +28,7 @@
 #include <simgear/math/sg_geodesy.hxx>
 
 #include <FDM/LaRCsim/ls_interface.h>
-#include <Main/options.hxx>
+#include <Main/globals.hxx>
 #include <Time/timestamp.hxx>
 
 #include "External.hxx"
index af3acd4a16e175b402cb2d338d2ea46ec3e35d01..addea7cd08a759727f23cf0954637fe48c635ca1 100644 (file)
@@ -68,7 +68,6 @@
 #include <Main/fg_init.hxx>
 #include <Main/fg_io.hxx>
 #include <Main/globals.hxx>
-#include <Main/options.hxx>
 #include <Main/save.hxx>
 #ifdef FG_NETWORK_OLK
 #include <NetworkOLK/network.h>
@@ -299,8 +298,8 @@ static inline void TurnCursorOn( void )
     }
 #endif
 #if defined(X_CURSOR_TWEAKS)
-    glutWarpPointer( globals->get_current_view()->get_winWidth()/2,
-                    globals->get_current_view()->get_winHeight()/2);
+    glutWarpPointer( globals->get_options()->get_xsize()/2,
+                    globals->get_options()->get_ysize()/2);
 #endif
 }
 
@@ -310,8 +309,8 @@ static inline void TurnCursorOff( void )
 #if defined(WIN32_CURSOR_TWEAKS)
     glutSetCursor(GLUT_CURSOR_NONE);
 #elif defined(X_CURSOR_TWEAKS)
-    glutWarpPointer( globals->get_current_view()->get_winWidth(),
-                    globals->get_current_view()->get_winHeight());
+    glutWarpPointer( globals->get_options()->get_xsize(),
+                    globals->get_options()->get_ysize());
 #endif
 }
 
@@ -382,8 +381,8 @@ void guiMotionFunc ( int x, int y )
         // reset left click MOUSE_VIEW toggle feature
         _mVtoggle = 0;
         
-        ww = globals->get_current_view()->get_winWidth();
-        wh = globals->get_current_view()->get_winHeight();
+        ww = globals->get_options()->get_xsize();
+        wh = globals->get_options()->get_ysize();
         
         switch (mouse_mode) {
             case MOUSE_YOKE:
@@ -558,10 +557,11 @@ void guiMouseFunc(int button, int updown, int x, int y)
                         _quat[1] = curquat[1];
                         _quat[2] = curquat[2];
                         _quat[3] = curquat[3];
-                        x = globals->get_current_view()->get_winWidth()/2;
-                        y = globals->get_current_view()->get_winHeight()/2;
+                        x = globals->get_options()->get_xsize()/2;
+                        y = globals->get_options()->get_ysize()/2;
                         Quat0();
-                        _view_offset = globals->get_current_view()->get_goal_view_offset();
+                        _view_offset =
+                           globals->get_current_view()->get_goal_view_offset();
                         globals->get_current_view()->set_goal_view_offset(0.0);
 #ifdef NO_SMOOTH_MOUSE_VIEW
                         globals->get_current_view()->set_view_offset(0.0);
@@ -580,8 +580,8 @@ void guiMouseFunc(int button, int updown, int x, int y)
                     _savedX = x;
                     _savedY = y;
                     // start with zero point in center of screen
-                    _mX = globals->get_current_view()->get_winWidth()/2;
-                    _mY = globals->get_current_view()->get_winHeight()/2;
+                    _mX = globals->get_options()->get_xsize()/2;
+                    _mY = globals->get_options()->get_ysize()/2;
                     
                     // try to have the MOUSE_YOKE position
                     // reflect the current stick position
@@ -597,8 +597,8 @@ void guiMouseFunc(int button, int updown, int x, int y)
                 case MOUSE_YOKE:
                     mouse_mode = MOUSE_VIEW;
                     globals->get_options()->set_control_mode( FGOptions::FG_JOYSTICK );
-                    x = globals->get_current_view()->get_winWidth()/2;
-                    y = globals->get_current_view()->get_winHeight()/2;
+                    x = globals->get_options()->get_xsize()/2;
+                    y = globals->get_options()->get_ysize()/2;
                     _mVtoggle = 0;
                     Quat0();
                     build_rotmatrix(quat_mat, curquat);
@@ -966,8 +966,8 @@ void fgDumpSnapShot () {
     }
 
     fgInitVisuals();
-    fgReshape( globals->get_current_view()->get_winWidth(),
-              globals->get_current_view()->get_winHeight() );
+    fgReshape( globals->get_options()->get_xsize(),
+              globals->get_options()->get_ysize() );
 
     // we need two render frames here to clear the menu and cursor
     // ... not sure why but doing an extra fgFenderFrame() shoulnd't
index 67f25792f83120bdd7ffcb6fd3d0dc7b65107938..00e13c061af64fd06fef32c530787a915b4cbd3d 100644 (file)
@@ -55,7 +55,6 @@
 #endif
 
 #include "globals.hxx"
-#include "options.hxx"
 #include "save.hxx"
 #include "fg_init.hxx"
 #include <simgear/misc/props.hxx>
index a1426e0c6084199acdb2a2595698132594fe3bd7..630afbe8345be6e9d3d7ba51b50cd2ae2027cd89 100644 (file)
@@ -93,7 +93,6 @@
 #include "fg_init.hxx"
 #include "fg_io.hxx"
 #include "globals.hxx"
-#include "options.hxx"
 #include "bfi.hxx"
 
 #if defined(FX) && defined(XMESA)
@@ -104,6 +103,9 @@ FG_USING_STD(string);
 
 extern const char *default_root;
 
+// from main.cxx
+extern void fgReshape( int width, int height );
+
 
 // Read in configuration (file and command line) and just set fg_root
 bool fgInitFGRoot ( int argc, char **argv ) {
index d68c574eec201337ce99013649028d44c7c9552d..ef5e9d55d8dd3a4122747a36082943eb22964158 100644 (file)
@@ -70,7 +70,6 @@
 #include "bfi.hxx"
 #include "globals.hxx"
 #include "keyboard.hxx"
-#include "options.hxx"
 #include "save.hxx"
 
                                // From main.cxx
@@ -437,8 +436,8 @@ void GLUTkey(unsigned char k, int x, int y) {
                v->set_view_offset( FG_PI * 1.75 );
                globals->get_pilot_view()->set_pilot_offset(25.0, -25.0, 1.0);
            }
-           fgReshape( globals->get_current_view()->get_winWidth(),
-                      globals->get_current_view()->get_winHeight() );
+           fgReshape( globals->get_options()->get_xsize(),
+                      globals->get_options()->get_ysize() );
            return;
        case 120: // x key
            fov = globals->get_options()->get_fov();
@@ -539,14 +538,14 @@ void GLUTspecialkey(int k, int x, int y) {
        }
        case GLUT_KEY_F5: {
          current_panel->setYOffset(current_panel->getYOffset() - 5);
-         fgReshape(globals->get_current_view()->get_winWidth(),
-                   globals->get_current_view()->get_winHeight());
+         fgReshape(globals->get_options()->get_xsize(),
+                   globals->get_options()->get_ysize());
          return;
        }
        case GLUT_KEY_F6: {
          current_panel->setYOffset(current_panel->getYOffset() + 5);
-         fgReshape(globals->get_current_view()->get_winWidth(),
-                   globals->get_current_view()->get_winHeight());
+         fgReshape(globals->get_options()->get_xsize(),
+                   globals->get_options()->get_ysize());
          return;
        }
        case GLUT_KEY_F7: {
index ad156ab302df862bca5dbe93e62604707bf73ed5..3dbf405dcfe1bec316a7981ee8c0b7294d8b9937 100644 (file)
@@ -115,7 +115,6 @@ ssgTransform *ship_pos = NULL;
 #include "fg_io.hxx"
 #include "globals.hxx"
 #include "keyboard.hxx"
-#include "options.hxx"
 #include "splash.hxx"
 
 
@@ -143,6 +142,9 @@ static bool initial_freeze = true;
 // Another hack
 int use_signals = 0;
 
+// forward declaration
+void fgReshape( int width, int height );
+
 // Global structures for the Audio library
 #ifdef ENABLE_AUDIO_SUPPORT
 slEnvelope pitch_envelope ( 1, SL_SAMPLE_ONE_SHOT ) ;
@@ -1120,6 +1122,10 @@ static void fgIdleFunction ( void ) {
 
        // sleep(1);
        idle_state = 1000;
+
+       cout << "Panel visible = " << fgPanelVisible() << endl;
+       fgReshape( globals->get_options()->get_xsize(),
+                  globals->get_options()->get_ysize() );
     } 
 
     if ( idle_state == 1000 ) {
@@ -1151,8 +1157,8 @@ void fgReshape( int width, int height ) {
                   (GLint)(width), (GLint)(view_h) );
     }
 
-    globals->get_current_view()->set_winWidth( width );
-    globals->get_current_view()->set_winHeight( height );
+    globals->get_options()->set_xsize( width );
+    globals->get_options()->set_ysize( height );
     globals->get_current_view()->force_update_fov_math();
 
     // set these fov to be the same as in fgRenderFrame()
@@ -1315,7 +1321,8 @@ int main( int argc, char **argv ) {
     // seed the random number generater
     fg_srandom();
 
-    // needs to happen before we parse command line options
+    // Allocate global data structures.  This needs to happen before
+    // we parse command line options
     globals = new FGGlobals;
 
     SGRoute *route = new SGRoute;
index 335cfe091e8bdf9ea5e4a8fafcaab998caf610f1..89acfb168df0efc20d102a1eae4cabbddb235568 100644 (file)
@@ -60,7 +60,7 @@ bool global_fullscreen = true;
 FG_USING_STD(string);
 FG_USING_NAMESPACE(std);
 
-// from GLUTmain.cxx
+// from main.cxx
 extern void fgReshape( int width, int height );
 
 inline double
@@ -185,10 +185,6 @@ FGOptions::FGOptions() :
     wireframe(0),
     xsize(800),
     ysize(600),
-    xmin(0),
-    ymin(0),
-    xmax(800),
-    ymax(600),
     bpp(16),
     view_mode(FG_VIEW_PILOT),
     default_view_offset(0),
@@ -271,9 +267,7 @@ FGOptions::toggle_panel() {
        fov *= (1.0 / 0.4232);
     } */
 
-    // fgReshape( xsize, ysize);
-    fgReshape( globals->get_current_view()->get_winWidth(),
-              globals->get_current_view()->get_winHeight() );
+    fgReshape( xsize, ysize);
 
     if( !freeze )
         globals->set_freeze( false );
@@ -826,10 +820,6 @@ int FGOptions::parse_option( const string& arg ) {
            FG_LOG( FG_GENERAL, FG_ALERT,
                    "Setting geometry to " << xsize << 'x' << ysize << '\n');
        }
-
-       xmin = ymin = 0;
-       xmax = xsize;
-       ymax = ysize;
     } else if ( arg.find( "--bpp=" ) != string::npos ) {
        string bits_per_pix = arg.substr( 6 );
        if ( bits_per_pix == "16" ) {
index aaee9b9c1439dc481c0ae2a650bd9fab4b852389..9f9833c5a81b6c00370409b412dc193b61c7f188 100644 (file)
@@ -180,8 +180,6 @@ private:
     bool textures;      // Textures enabled/disabled
     bool wireframe;     // Wireframe mode enabled/disabled
     int xsize, ysize;   // window size derived from geometry string
-    int xmin, ymin;     // upper left corner of window to draw in
-    int xmax, ymax;     // lower right corner of window to draw in
     int bpp;            // bits per pixel
     fgViewMode view_mode; // view mode
     double default_view_offset;        // default forward view offset (for use by
@@ -288,10 +286,6 @@ public:
     inline bool get_wireframe() const { return wireframe; }
     inline int get_xsize() const { return xsize; }
     inline int get_ysize() const { return ysize; }
-    inline int get_xmin() const { return xmin; }
-    inline int get_ymin() const { return ymin; }
-    inline int get_xmax() const { return xmax; }
-    inline int get_ymax() const { return ymax; }
     inline int get_bpp() const { return bpp; }
     inline fgViewMode get_view_mode() const { return view_mode; }
     inline double get_default_view_offset() const {
index ef9aa039ebde78b7fa944e1420e7423bc039b068..712847eb80a2c7eead546f83491ea457acb92563 100644 (file)
@@ -109,15 +109,15 @@ void fgSplashUpdate ( double progress ) {
     int xsize = 480;
     int ysize = 380;
 
-    if ( !globals->get_current_view()->get_winWidth()
-        || !globals->get_current_view()->get_winHeight() ) {
+    if ( !globals->get_options()->get_xsize()
+        || !globals->get_options()->get_ysize() ) {
        return;
     }
 
-    xmin = (globals->get_current_view()->get_winWidth() - xsize) / 2;
+    xmin = (globals->get_options()->get_xsize() - xsize) / 2;
     xmax = xmin + xsize;
 
-    ymin = (globals->get_current_view()->get_winHeight() - ysize) / 2;
+    ymin = (globals->get_options()->get_ysize() - ysize) / 2;
     ymax = ymin + ysize;
 
     // first clear the screen;
@@ -128,8 +128,8 @@ void fgSplashUpdate ( double progress ) {
     xglMatrixMode(GL_PROJECTION);
     xglPushMatrix();
     xglLoadIdentity();
-    gluOrtho2D(0, globals->get_current_view()->get_winWidth(),
-              0, globals->get_current_view()->get_winHeight());
+    gluOrtho2D(0, globals->get_options()->get_xsize(),
+              0, globals->get_options()->get_ysize());
     xglMatrixMode(GL_MODELVIEW);
     xglPushMatrix();
     xglLoadIdentity();
index 6bf8f45054f3468f4a31e385ee061f0ade6e2982..c4be9007b3077c190307a0161ce5c31af3438968 100644 (file)
@@ -40,7 +40,7 @@
 #include <Cockpit/panel.hxx>
 #include <Scenery/scenery.hxx>
 
-#include "options.hxx"
+#include "globals.hxx"
 #include "viewer.hxx"
 
 
@@ -86,10 +86,8 @@ void FGViewer::Init( void ) {
     view_offset = goal_view_offset = globals->get_options()->get_default_view_offset();
     sgSetVec3( pilot_offset, 0.0, 0.0, 0.0 );
 
-    winWidth = globals->get_options()->get_xsize();
-    winHeight = globals->get_options()->get_ysize();
-
-    set_win_ratio( winHeight / winWidth );
+    set_win_ratio( globals->get_options()->get_xsize() /
+                  globals->get_options()->get_ysize() );
 
 #ifndef USE_FAST_VIEWROT
     // This never changes -- NHV
@@ -158,13 +156,16 @@ void FGViewer::UpdateViewParams( const FGInterface& f ) {
     UpdateViewMath(f);
     
     if ( ! fgPanelVisible() ) {
-       xglViewport(0, 0 , (GLint)(winWidth), (GLint)(winHeight) );
+       xglViewport( 0, 0 ,
+                    (GLint)(globals->get_options()->get_xsize()),
+                    (GLint)(globals->get_options()->get_ysize()) );
     } else {
         int view_h =
          int((current_panel->getViewHeight() - current_panel->getYOffset())
-             * (winHeight / 768.0));
-       glViewport(0, (GLint)(winHeight - view_h),
-                  (GLint)(winWidth), (GLint)(view_h) );
+             * (globals->get_options()->get_ysize() / 768.0));
+       glViewport( 0, (GLint)(globals->get_options()->get_ysize() - view_h),
+                   (GLint)(globals->get_options()->get_xsize()),
+                   (GLint)(view_h) );
     }
 }
 
index 334ecb68c778e3e4f8fda3507bb5004285b742e6..19d5f2563c0500f92a3eb44170888b83270d15b9 100644 (file)
@@ -41,7 +41,6 @@
 #include <FDM/flight.hxx>
 #include <Time/light.hxx>
 
-#include "options.hxx"
 
 FG_USING_STD(list);
 
@@ -70,7 +69,7 @@ private:
     double win_ratio;
 
     // width & height of window
-    int winWidth, winHeight;
+    // int winWidth, winHeight;
 
     // absolute view position in earth coordinates
     Point3D abs_view_pos;
@@ -165,10 +164,10 @@ public:
     inline void set_goal_view_offset( double a) { goal_view_offset = a; }
     inline double get_win_ratio() const { return win_ratio; }
     inline void set_win_ratio( double r ) { win_ratio = r; }
-    inline int get_winWidth() const { return winWidth; }
-    inline void set_winWidth( int w ) { winWidth = w; }
-    inline int get_winHeight() const { return winHeight; }
-    inline void set_winHeight( int h ) { winHeight = h; }
+    // inline int get_winWidth() const { return winWidth; }
+    // inline void set_winWidth( int w ) { winWidth = w; }
+    // inline int get_winHeight() const { return winHeight; }
+    // inline void set_winHeight( int h ) { winHeight = h; }
     inline Point3D get_abs_view_pos() const { return abs_view_pos; }
     inline Point3D get_view_pos() const { return view_pos; }
     inline float *get_pilot_offset() { return pilot_offset; }
index 1045b7b227ccb85303f832e75d3c252f8afb32d5..b9e235304f4a982e8f5550d2e2793680e95663fd 100644 (file)
@@ -41,7 +41,7 @@
 #include <Cockpit/panel.hxx>
 #include <Scenery/scenery.hxx>
 
-#include "options.hxx"
+#include "globals.hxx"
 #include "views.hxx"
 
 
index 6f5e1fd7e1657c7d1fcb1788bf9dbd1ec66754c1..15fb85c08e7745ec8605c76de34169081af1bb21 100644 (file)
@@ -41,8 +41,6 @@
 #include <FDM/flight.hxx>
 #include <Time/light.hxx>
 
-#include "options.hxx"
-
 FG_USING_STD(list);
 
 
index d5dfeef798d6da8fd2795781563cf30b8f2d9c81..f4f5ac7078a1356ca58d966eeec311a7ece01cab 100644 (file)
@@ -51,7 +51,6 @@
 
 #include <Aircraft/aircraft.hxx>
 #include <GUI/gui.h>
-#include <Main/options.hxx>
 #include <Scenery/scenery.hxx>
 #include <Time/fg_timer.hxx>
 
@@ -63,7 +62,6 @@ extern "C" {
 
 */
 
-#include <Main/options.hxx>
 #include <Cockpit/hud.hxx>
 #include <NetworkOLK/network.h>
 
index f03593b0ea0e5e0a5a9cbb184a0181e99c16a0b4..0672d6ff71ebadf693bb3c25f3a959df279de7a8 100644 (file)
@@ -50,7 +50,6 @@
 
 #include <Aircraft/aircraft.hxx>
 #include <GUI/gui.h>
-#include <Main/options.hxx>
 #include <Scenery/scenery.hxx>
 #include <Time/fg_timer.hxx>
 
index 7f27a782dec1e714efcba56c1f2c3a4a83c3f9f0..0294de24d792f1af40dac5a8a302bc5b38b2665b 100644 (file)
@@ -37,8 +37,6 @@
 
 #include <simgear/debug/logstream.hxx>
 
-#include <Main/options.hxx>
-
 #include "scenery.hxx"