win32: fix small directdraw display bug which looked like a glitch inbetween screens sometimes with non-integer window scalings
This commit is contained in:
parent
32ca5e236e
commit
a039a35122
desmume/src/windows
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue