]> git.mxchange.org Git - flightgear.git/commitdiff
set /sim/startup/[xy]size initially again. (This was always done in the past,
authormfranz <mfranz>
Tue, 25 Apr 2006 20:16:01 +0000 (20:16 +0000)
committermfranz <mfranz>
Tue, 25 Apr 2006 20:16:01 +0000 (20:16 +0000)
but got changed so that Nasal listeners wouldn't be triggered needlessly.
Doesn't make sense, though, as Nasal will never be available before the
video size is set, and it prevents the window interface from setting the
startup size.)

src/Main/renderer.cxx

index eb19aaa714a6b9efe8e13d068f5cb4b59b7387b2..421e8a8666a7b6f98e5166ac670fb4a8898759c5 100644 (file)
@@ -773,8 +773,8 @@ FGRenderer::resize( int width, int height ) {
 
     glViewport( 0, (GLint)(height - view_h), (GLint)(width), (GLint)(view_h) );
 
-    static int lastwidth = width;
-    static int lastheight = height;
+    static int lastwidth = 0;
+    static int lastheight = 0;
     if (width != lastwidth)
         fgSetInt("/sim/startup/xsize", lastwidth = width);
     if (height != lastheight)