mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-05-01 14:41:41 +00:00
Warn if user overrode the SDL video driver hint
This commit is contained in:
parent
b8df5370a6
commit
8c2a50133e
1 changed files with 4 additions and 0 deletions
|
|
@ -138,6 +138,10 @@ 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) {
|
||||||
|
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 };
|
||||||
#else
|
#else
|
||||||
static_assert(false && "Unimplemented");
|
static_assert(false && "Unimplemented");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue