1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

disable wayland detection for SteamDeck

Not needed because the deck does automatically enabled gamescope and therefore games will not glitch
This commit is contained in:
FunkyFr3sh 2024-08-24 14:42:33 +02:00
parent ab3aac113e
commit 40ed996311

View File

@ -1163,7 +1163,7 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
Fix wayland bug: Fix wayland bug:
ChangeDisplaySettings fails silently - enable borderless mode in case display resolution was not changed ChangeDisplaySettings fails silently - enable borderless mode in case display resolution was not changed
*/ */
if (IsWine() && if (IsWine() && !GetEnvironmentVariable("STEAMDECK", NULL, 0) &&
(g_ddraw.render.mode.dmPelsWidth != real_GetSystemMetrics(SM_CXSCREEN) || (g_ddraw.render.mode.dmPelsWidth != real_GetSystemMetrics(SM_CXSCREEN) ||
g_ddraw.render.mode.dmPelsHeight != real_GetSystemMetrics(SM_CYSCREEN))) g_ddraw.render.mode.dmPelsHeight != real_GetSystemMetrics(SM_CYSCREEN)))
{ {