mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-10-01 16:09:54 +02:00
potential dumb fix for X11 issue
This commit is contained in:
parent
a5053b6b21
commit
1423c3c6b1
@ -139,8 +139,8 @@ ultramodern::WindowHandle create_window(ultramodern::gfx_callbacks_t::gfx_data_t
|
|||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
static_assert(false && "Unimplemented");
|
static_assert(false && "Unimplemented");
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
if (wmInfo.subsystem != SDL_SYSWM_X11) {
|
if (wmInfo.subsystem != SDL_SYSWM_X11 && SDL_GetCurrentVideoDriver() != "x11" && SDL_GetCurrentVideoDriver() != "X11") {
|
||||||
exit_error("Unsupported SDL2 video driver \"%d\". Only X11 is supported on Linux.\n", wmInfo.subsystem);
|
exit_error("Unsupported SDL2 video driver \"%s\". Only X11 is supported on Linux.\n", SDL_GetCurrentVideoDriver());
|
||||||
}
|
}
|
||||||
|
|
||||||
return ultramodern::WindowHandle{ wmInfo.info.x11.display, wmInfo.info.x11.window };
|
return ultramodern::WindowHandle{ wmInfo.info.x11.display, wmInfo.info.x11.window };
|
||||||
|
Loading…
Reference in New Issue
Block a user