1
0
Fork 0

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.)
This commit is contained in:
mfranz 2006-04-25 20:16:01 +00:00
parent 573fb5a50a
commit 7eb26c4ab3

View 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)