From 0abca6be34fb14c6849405610db3bb6b000713b7 Mon Sep 17 00:00:00 2001 From: fredb Date: Thu, 30 Mar 2006 20:37:34 +0000 Subject: [PATCH] Don't restore initial screen geometry because there is nothing in fg_os* to resize an existing window. Old behavior was to just resize the GL viewport, which doesn't necessarily match the fg window size. --- src/GUI/gui_local.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GUI/gui_local.cxx b/src/GUI/gui_local.cxx index 0feed8a7e..64318b62e 100644 --- a/src/GUI/gui_local.cxx +++ b/src/GUI/gui_local.cxx @@ -73,6 +73,11 @@ void reInit(puObject *cb) // update our position based on current presets fgInitPosition(); + // We don't know how to resize the window, so keep the last values + // for xsize and ysize, and don't use the one set initially + fgSetInt("/sim/startup/xsize",xsize); + fgSetInt("/sim/startup/ysize",ysize); + SGTime *t = globals->get_time_params(); delete t; t = fgInitTime(); -- 2.39.5