1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 01:27:34 +00:00

Ports: Add SDL2 compatibility layer port (sdl12-compat)

This commit is contained in:
Grigoris Pavlakis 2022-05-21 21:33:02 +03:00 committed by Linus Groh
parent 0c3db153cf
commit 3c1f899050
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,25 @@
From a2b0791418672dffcfc8baae4d0b8158693a794c Mon Sep 17 00:00:00 2001
From: Grigoris Pavlakis <grigpavl@ece.auth.gr>
Date: Sat, 28 May 2022 17:21:27 +0300
Subject: [PATCH] Disable forced fullscreen on logical scaling
---
src/SDL12_compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index b3a411e..4d8001d 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -5184,7 +5184,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags12)
fullscreen_flags20 &= ~SDL_WINDOW_FULLSCREEN_DESKTOP;
SDL20_SetWindowFullscreen(VideoWindow20, fullscreen_flags20);
SDL20_SetWindowSize(VideoWindow20, width, height);
- fullscreen_flags20 |= SDL_WINDOW_FULLSCREEN;
+ /* fullscreen_flags20 |= SDL_WINDOW_FULLSCREEN; */
SDL20_SetWindowFullscreen(VideoWindow20, fullscreen_flags20);
}
}
--
2.36.1