force X11 if SDL_VIDEODRIVER not set
workaround for Wayland HiDPI issue #153
This commit is contained in:
parent
a64f8f7a29
commit
a23a2ce91e
|
@ -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="";
|
||||
|
||||
|
|
Loading…
Reference in a new issue