summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-08 19:56:43 +0200
committerxengineering <me@xengineering.eu>2022-10-08 19:56:43 +0200
commit413e6f664f460a342124103eeb4a5500ca3a5758 (patch)
tree3a7ba1058459af2596d29e83a4e1d52bfeb1b6c6
parent7261530516dd0485be9648bde2d0bd49605434e9 (diff)
downloadlimox-413e6f664f460a342124103eeb4a5500ca3a5758.tar
limox-413e6f664f460a342124103eeb4a5500ca3a5758.tar.zst
limox-413e6f664f460a342124103eeb4a5500ca3a5758.zip
Output used SDL2 video driver
-rw-r--r--sdl2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl2.c b/sdl2.c
index bbabd51..e8a12f9 100644
--- a/sdl2.c
+++ b/sdl2.c
@@ -25,6 +25,9 @@ void gui_run(void) {
0
);
+ // output video driver to stderr
+ fprintf(stderr, "SDL2 video driver: %s\n", SDL_GetCurrentVideoDriver());
+
// handle failed window creation
if (window == NULL) {
fprintf(stderr, "Failed to create SDL2 window!\n");