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);