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