From be11b35df948b65afef7588bbaced7d400c052c7 Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 9 Dec 2016 05:55:50 -0600 Subject: [PATCH] winport: fix occasional garbage subscreen rect in one LCD mode (fix #6) --- desmume/src/frontend/windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index 4f80a27b8..933f05a5c 100644 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -1214,6 +1214,7 @@ void UpdateWndRects(HWND hwnd) ClientToScreen(hwnd, &ptClient); MainScreenRect.right = ptClient.x; MainScreenRect.bottom = ptClient.y; + SetRectEmpty(&SubScreenRect); } else if (video.layout == 0) //vertical @@ -1699,7 +1700,6 @@ static void OGL_DoDisplay() for(int i=0;i<2;i++) { - //none of this makes any goddamn sense. dont even try. int idx = i; int ofs = 0;