win32: fix small directdraw display bug which looked like a glitch inbetween screens sometimes with non-integer window scalings

This commit is contained in:
zeromus 2009-04-02 07:37:32 +00:00
parent 32ca5e236e
commit a039a35122
1 changed files with 6 additions and 0 deletions
desmume/src/windows

View File

@ -1659,6 +1659,9 @@ void UpdateWndRects(HWND hwnd)
MainScreenRect.right = ptClient.x;
MainScreenRect.bottom = ptClient.y;
//if there was no specified screen gap, extend the top screen to cover the extra column
if(ScreenGap == 0) MainScreenRect.right += gapHeight;
// Sub screen
ptClient.x = (rc.left + oneScreenHeight + gapHeight);
ptClient.y = rc.top;
@ -1691,6 +1694,9 @@ void UpdateWndRects(HWND hwnd)
MainScreenRect.right = ptClient.x;
MainScreenRect.bottom = ptClient.y;
//if there was no specified screen gap, extend the top screen to cover the extra row
if(ScreenGap == 0) MainScreenRect.bottom += gapHeight;
// Sub screen
ptClient.x = rc.left;
ptClient.y = (rc.top + oneScreenHeight + gapHeight);