When resizing the window to a smaller size, the emulated image will now be updated as well.
This commit is contained in:
parent
7c13eb20a6
commit
c92f085a96
|
@ -769,6 +769,8 @@ void MainWnd::OnSize(UINT nType, int cx, int cy)
|
||||||
{
|
{
|
||||||
CWnd::OnSize(nType, cx, cy);
|
CWnd::OnSize(nType, cx, cy);
|
||||||
|
|
||||||
|
bool redraw = ( ( cx < theApp.surfaceSizeX ) || ( cy < theApp.surfaceSizeY ) );
|
||||||
|
|
||||||
if(!theApp.changingVideoSize) {
|
if(!theApp.changingVideoSize) {
|
||||||
if(this) {
|
if(this) {
|
||||||
if(!IsIconic()) {
|
if(!IsIconic()) {
|
||||||
|
@ -784,6 +786,12 @@ void MainWnd::OnSize(UINT nType, int cx, int cy)
|
||||||
theApp.adjustDestRect();
|
theApp.adjustDestRect();
|
||||||
if(theApp.display)
|
if(theApp.display)
|
||||||
theApp.display->resize(theApp.dest.right-theApp.dest.left, theApp.dest.bottom-theApp.dest.top);
|
theApp.display->resize(theApp.dest.right-theApp.dest.left, theApp.dest.bottom-theApp.dest.top);
|
||||||
|
if( redraw && emulating ) {
|
||||||
|
theApp.painting = true;
|
||||||
|
systemDrawScreen();
|
||||||
|
theApp.painting = false;
|
||||||
|
theApp.renderedFrames--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(emulating) {
|
if(emulating) {
|
||||||
|
|
Loading…
Reference in New Issue