From a039a3512213c05b51379746bb24115a038f4912 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 2 Apr 2009 07:37:32 +0000 Subject: [PATCH] win32: fix small directdraw display bug which looked like a glitch inbetween screens sometimes with non-integer window scalings --- desmume/src/windows/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 954905094..358c243e8 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -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);