From a23a2ce91e87ed7037fcddcad5889651cb464690 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 8 Feb 2022 17:35:41 -0500 Subject: [PATCH] force X11 if SDL_VIDEODRIVER not set workaround for Wayland HiDPI issue #153 --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 29725bba6..4b150863b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -219,6 +219,12 @@ void initParams() { } int main(int argc, char** argv) { +#if !(defined(__APPLE__) || defined(_WIN32)) + // workaround for Wayland HiDPI issue + if (getenv("SDL_VIDEODRIVER")==NULL) { + setenv("SDL_VIDEODRIVER","x11",1); + } +#endif outName=""; vgmOutName="";