From 7eb26c4ab3239ad1f0cb8e670a2beea9e0489d3e Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 25 Apr 2006 20:16:01 +0000 Subject: [PATCH] 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.) --- src/Main/renderer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5