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;
|
QSize w, v;
|
||||||
double xscale, yscale;
|
double xscale, yscale;
|
||||||
int texture_width = nes_shm->video.ncol;
|
int texture_width = GL_NES_WIDTH;
|
||||||
int texture_height = nes_shm->video.nrow;
|
int texture_height = GL_NES_HEIGHT;
|
||||||
int l=0, r=texture_width;
|
int l=0, r=texture_width;
|
||||||
int t=0, b=texture_height;
|
int t=0, b=texture_height;
|
||||||
int dw=0, dh=0, rw, rh;
|
int dw=0, dh=0, rw, rh;
|
||||||
|
@ -275,6 +275,12 @@ QSize consoleWin_t::calcRequiredSize(void)
|
||||||
|
|
||||||
CalcVideoDimensions();
|
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();
|
w = size();
|
||||||
|
|
||||||
if ( viewport_GL )
|
if ( viewport_GL )
|
||||||
|
|
Loading…
Reference in New Issue