Fixed order of execution bug to ensure that first startup of Qt GUI with default config sizes window exactly right.
This commit is contained in:
parent
081d55ea45
commit
8241973af1
|
@ -266,8 +266,8 @@ QSize consoleWin_t::calcRequiredSize(void)
|
|||
|
||||
QSize w, v;
|
||||
double xscale, yscale;
|
||||
int texture_width = nes_shm->video.ncol;
|
||||
int texture_height = nes_shm->video.nrow;
|
||||
int texture_width = GL_NES_WIDTH;
|
||||
int texture_height = GL_NES_HEIGHT;
|
||||
int l=0, r=texture_width;
|
||||
int t=0, b=texture_height;
|
||||
int dw=0, dh=0, rw, rh;
|
||||
|
@ -275,6 +275,12 @@ QSize consoleWin_t::calcRequiredSize(void)
|
|||
|
||||
CalcVideoDimensions();
|
||||
|
||||
texture_width = nes_shm->video.ncol;
|
||||
texture_height = nes_shm->video.nrow;
|
||||
|
||||
l=0, r=texture_width;
|
||||
t=0, b=texture_height;
|
||||
|
||||
w = size();
|
||||
|
||||
if ( viewport_GL )
|
||||
|
|
Loading…
Reference in New Issue