distribution/packages/multimedia/gmu/patches/vulkan/001-fix-sdl.patch
fewtarius 222b637a99
* Documents support for AOKZOE A1 Pro and GPD Win 4.
* Fixes GMU music player on S922X.
2023-07-17 12:42:18 +00:00

22 lines
1.1 KiB
Diff

diff --git a/src/frontends/sdl/sdl.c b/src/frontends/sdl/sdl.c
index 7a31fc0..e0e6661 100644
--- a/src/frontends/sdl/sdl.c
+++ b/src/frontends/sdl/sdl.c
@@ -186,7 +186,7 @@ static SDL_Surface *init_sdl(int with_joystick, int width, int height, int fulls
SDL_WINDOWPOS_UNDEFINED,
width,
height,
- (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) | SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN
+ (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) | SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN
);
if (!window) {
wdprintf(V_FATAL, "sdl_frontend", "Unable to setup window.\n");
@@ -1091,7 +1091,7 @@ static void run_player(char *skin_name, char *decoders_str)
SDL_WINDOWPOS_UNDEFINED,
w,
h,
- (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) | SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN
+ (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) | SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN
);
if (!window) {
wdprintf(V_FATAL, "sdl_frontend", "Unable to flip fullscreen mode.\n");