mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-05-02 07:01:49 +00:00
print wmInfo.subsystem in x11 error message
This commit is contained in:
parent
790b10a4b4
commit
a5053b6b21
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ ultramodern::WindowHandle create_window(ultramodern::gfx_callbacks_t::gfx_data_t
|
||||||
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) {
|
||||||
exit_error("Unsupported SDL2 video driver \"%s\". Only X11 is supported on Linux.\n", SDL_GetCurrentVideoDriver());
|
exit_error("Unsupported SDL2 video driver \"%d\". Only X11 is supported on Linux.\n", wmInfo.subsystem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ultramodern::WindowHandle{ wmInfo.info.x11.display, wmInfo.info.x11.window };
|
return ultramodern::WindowHandle{ wmInfo.info.x11.display, wmInfo.info.x11.window };
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue