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:
parent
ab3aac113e
commit
40ed996311
2
src/dd.c
2
src/dd.c
@ -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)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user