mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Set WS_POPUP for fullscreen windows, rumoured to help certain gl drivers do the right thing.
Remove an outdated comment.
This commit is contained in:
parent
75b9da3e96
commit
49fb0bd65b
2 changed files with 6 additions and 1 deletions
|
@ -520,7 +520,6 @@ void EmuScreen::processAxis(const AxisInput &axis, int direction) {
|
||||||
if (!IsAnalogStickKey(resultsOpposite[i]))
|
if (!IsAnalogStickKey(resultsOpposite[i]))
|
||||||
pspKey(resultsOpposite[i], KEY_UP);
|
pspKey(resultsOpposite[i], KEY_UP);
|
||||||
}
|
}
|
||||||
// Hm, why do we use a different way below?
|
|
||||||
} else if (axisState == 0) {
|
} else if (axisState == 0) {
|
||||||
// Release both directions, trying to deal with some erratic controllers that can cause it to stick.
|
// Release both directions, trying to deal with some erratic controllers that can cause it to stick.
|
||||||
for (size_t i = 0; i < results.size(); i++) {
|
for (size_t i = 0; i < results.size(); i++) {
|
||||||
|
|
|
@ -320,6 +320,9 @@ namespace MainWindow
|
||||||
if (!goingFullscreen) {
|
if (!goingFullscreen) {
|
||||||
// Put caption and border styles back.
|
// Put caption and border styles back.
|
||||||
dwOldStyle = ::GetWindowLong(hWnd, GWL_STYLE);
|
dwOldStyle = ::GetWindowLong(hWnd, GWL_STYLE);
|
||||||
|
|
||||||
|
dwOldStyle &= ~WS_POPUP;
|
||||||
|
|
||||||
dwNewStyle = dwOldStyle | WS_CAPTION | WS_THICKFRAME | WS_SYSMENU;
|
dwNewStyle = dwOldStyle | WS_CAPTION | WS_THICKFRAME | WS_SYSMENU;
|
||||||
|
|
||||||
// Put back the menu bar.
|
// Put back the menu bar.
|
||||||
|
@ -331,6 +334,9 @@ namespace MainWindow
|
||||||
// Remove caption and border styles.
|
// Remove caption and border styles.
|
||||||
dwOldStyle = ::GetWindowLong(hWnd, GWL_STYLE);
|
dwOldStyle = ::GetWindowLong(hWnd, GWL_STYLE);
|
||||||
dwNewStyle = dwOldStyle & ~(WS_CAPTION | WS_THICKFRAME | WS_SYSMENU);
|
dwNewStyle = dwOldStyle & ~(WS_CAPTION | WS_THICKFRAME | WS_SYSMENU);
|
||||||
|
|
||||||
|
// Add WS_POPUP
|
||||||
|
dwNewStyle |= WS_POPUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
::SetWindowLong(hWnd, GWL_STYLE, dwNewStyle);
|
::SetWindowLong(hWnd, GWL_STYLE, dwNewStyle);
|
||||||
|
|
Loading…
Add table
Reference in a new issue