1
0
Fork 0

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.
This commit is contained in:
fredb 2006-03-30 20:37:34 +00:00
parent a5b42c7201
commit 0abca6be34

View file

@ -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();