force X11 if SDL_VIDEODRIVER not set

workaround for Wayland HiDPI issue #153
This commit is contained in:
tildearrow 2022-02-08 17:35:41 -05:00
parent a64f8f7a29
commit a23a2ce91e

View file

@ -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="";