]> git.mxchange.org Git - flightgear.git/commitdiff
restore the uglyness: call the resize callback every frame again, even
authormfranz <mfranz>
Sat, 28 Jan 2006 16:06:03 +0000 (16:06 +0000)
committermfranz <mfranz>
Sat, 28 Jan 2006 16:06:03 +0000 (16:06 +0000)
though the window wasn't resized. I'm just not adventurous enough for
a cleaner solution in the light of the upcoming release. At least the
xsize/ysize properties aren't set each frame any more, so listeners
work now properly.

src/Main/renderer.cxx

index 7e9c6f9974346b6a2684104868040ae6bac12f2f..edc4f7142e36fa3a8bfc8237c15e17840f19307f 100644 (file)
@@ -336,6 +336,10 @@ FGRenderer::update( bool refresh_camera_settings ) {
     current__view->set_dirty();
 
     if ( refresh_camera_settings ) {
+        // update view port
+        resize( fgGetInt("/sim/startup/xsize"),
+                fgGetInt("/sim/startup/ysize") );
+
         // Tell GL we are switching to model view parameters
         glMatrixMode(GL_MODELVIEW);
         glLoadIdentity();