Emulator Issues #2267
closedWhen you chose to start game in fullscreen, first time you push ESC, the popup window doesn't have any border (everything is black)
0%
Description
What steps will reproduce the problem?
1.open Dolphin and select to start a game in fullscreen in options (i use
Open GL too)
2.start a game
3.push ESC and you will see the awful popup (only the first time you push ESC)
What is the expected output? What do you see instead?
A good popup with borders
A awful popup without borders
Please use labels and text to provide additional information.
I have found the problem. This is how to solve it in the code:
The problem is in the ToggletoFullscreen method.
On line 500 of win32.cpp (plugin OGL), there is:
SetWindowPos(hParent, NULL, X, Y, rc.right-rc.left, rc.bottom-rc.top,
SWP_NOREPOSITION | SWP_NOZORDER);
// Set new window style FS -> Windowed
SetWindowLongPtr(hParent, GWL_STYLE, style);
INSTEAD OF THE RIGHT CODE (the lines must be inverted):
// Set new window style FS -> Windowed
SetWindowLongPtr(hParent, GWL_STYLE, WS_OVERLAPPEDWINDOW);
SetWindowPos(hParent, NULL, X, Y, rc.right-rc.left,
rc.bottom-rc.top, SWP_NOREPOSITION| SWP_NOZORDER);