mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
add new IsSteamDeck function to versionhelpers
This commit is contained in:
parent
40ed996311
commit
136b5b30c5
@ -228,4 +228,8 @@ VERSIONHELPERAPI IsAndroid(void) {
|
|||||||
return release && strstr(release, "android") != NULL;
|
return release && strstr(release, "android") != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VERSIONHELPERAPI IsSteamDeck(void) {
|
||||||
|
return IsWine() && !GetEnvironmentVariable("STEAMDECK", NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
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() && !GetEnvironmentVariable("STEAMDECK", NULL, 0) &&
|
if (IsWine() && !IsSteamDeck() &&
|
||||||
(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