From a5053b6b2193670457ee5b84e5a5e95f3d8b3fbb Mon Sep 17 00:00:00 2001 From: Reonu Date: Mon, 27 May 2024 00:05:39 +0100 Subject: [PATCH] print wmInfo.subsystem in x11 error message --- src/main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/main.cpp b/src/main/main.cpp index 3cc2893..47630ad 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -140,7 +140,7 @@ ultramodern::WindowHandle create_window(ultramodern::gfx_callbacks_t::gfx_data_t static_assert(false && "Unimplemented"); #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()); + 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 };