mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix borderless fullscreen window restoring
This commit is contained in:
parent
e8d106795d
commit
67e1e6b071
1 changed files with 4 additions and 0 deletions
|
|
@ -197,6 +197,10 @@ void xivfixes::prevent_devicechange_crashes(bool bApply) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// While at it, prevent game from entering restored mode if the game does not have window frames (borderless window/fullscreen.)
|
||||||
|
if (uMsg == WM_SIZE && wParam == SIZE_RESTORED && (GetWindowLongW(hWnd, GWL_STYLE) & WS_POPUP))
|
||||||
|
return ShowWindow(hWnd, SW_MAXIMIZE);
|
||||||
|
|
||||||
return s_pfnGameWndProc(hWnd, uMsg, wParam, lParam);
|
return s_pfnGameWndProc(hWnd, uMsg, wParam, lParam);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue