From 9ec018ed8eed0fc0c45ac60272b67c0e68d715c1 Mon Sep 17 00:00:00 2001 From: Lilis Iskandar Date: Tue, 9 Jan 2024 16:45:29 +0800 Subject: [PATCH] Backport commit 62457e66 sdl: add missing HINT_VIDEODRIVER hint (#588) Signed-off-by: Lilis Iskandar --- sdl/hints.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdl/hints.go b/sdl/hints.go index 1b88ee41..8d21ef3a 100644 --- a/sdl/hints.go +++ b/sdl/hints.go @@ -152,6 +152,7 @@ package sdl #define SDL_HINT_JOYSTICK_ROG_CHAKRAM "" #define SDL_HINT_X11_WINDOW_TYPE "" #define SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR "" +#define SDL_HINT_VIDEODRIVER "" #endif */ @@ -260,6 +261,7 @@ const ( HINT_JOYSTICK_ROG_CHAKRAM = C.SDL_HINT_JOYSTICK_ROG_CHAKRAM // A variable controlling whether the ROG Chakram mice should show up as joysticks HINT_X11_WINDOW_TYPE = C.SDL_HINT_X11_WINDOW_TYPE // A variable that forces X11 windows to create as a custom type HINT_VIDEO_WAYLAND_PREFER_LIBDECOR = C.SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR // A variable controlling whether the libdecor Wayland backend is preferred over native decrations + HINT_VIDEODRIVER = C.SDL_HINT_VIDEODRIVER // A variable that decides what video backend to use ) // An enumeration of hint priorities.