From c89be9246154da4c1d05d7e7861fa8d739d7900d Mon Sep 17 00:00:00 2001 From: NepDisk Date: Thu, 12 Feb 2026 13:09:16 -0500 Subject: [PATCH] Set wayland scale hint if on Linux Thanks Alug! --- src/sdl/i_video.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index a26548d3a..76dfbe916 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -1606,7 +1606,9 @@ static void Impl_InitVideoSubSystem(void) { if (video_init) return; - +#if defined (__linux__) + SDL_SetHint("SDL_VIDEO_WAYLAND_SCALE_TO_DISPLAY", "1"); +#endif if (!SDL_InitSubSystem(SDL_INIT_VIDEO)) { CONS_Printf(M_GetText("Couldn't initialize SDL's Video System: %s\n"), SDL_GetError());