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:
parent
573fb5a50a
commit
7eb26c4ab3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue