diff --git a/desmume/src/frontend/windows/display.cpp b/desmume/src/frontend/windows/display.cpp index aa303b520..61021e197 100644 --- a/desmume/src/frontend/windows/display.cpp +++ b/desmume/src/frontend/windows/display.cpp @@ -742,6 +742,8 @@ void UpdateWndRects(HWND hwnd, RECT* newClientRect) POINT ptClient; RECT rc; + GapRect = {0,0,0,0}; + bool maximized = IsZoomed(hwnd) != FALSE; int wndWidth, wndHeight;