When resizing the window to a smaller size, the emulated image will now be updated as well.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@182 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
1484c18b73
commit
ba1850dbbe
|
@ -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