From: mfranz Date: Tue, 25 Apr 2006 20:16:01 +0000 (+0000) Subject: set /sim/startup/[xy]size initially again. (This was always done in the past, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7eb26c4ab3239ad1f0cb8e670a2beea9e0489d3e;p=flightgear.git set /sim/startup/[xy]size initially again. (This was always done in the past, 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.) --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index eb19aaa71..421e8a866 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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)