From 35f7e05fc0b06d948508ebd38922f792ff5800bd Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sun, 3 Dec 2006 03:12:22 +0000 Subject: [PATCH] List which SDL driver is actually in use, for debugging purposes git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2569 8092fc87-c524-0410-9efc-e669fe64eaf9 --- tools/keys/keyjam.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/keys/keyjam.c b/tools/keys/keyjam.c index 48f3fcf57..9b8937815 100644 --- a/tools/keys/keyjam.c +++ b/tools/keys/keyjam.c @@ -8,6 +8,7 @@ static int keystate[SDLK_LAST]; static char held_keys[BUFFERSIZE]; +static char videoname[BUFFERSIZE]; void @@ -46,6 +47,11 @@ DrawScreen (SDL_Surface *s) y += 8; DrawCenteredText (s, y, "register when simultaneously pressed."); + y += 16; + DrawCenteredText (s, y, "You are using the following SDL driver:"); + y += 8; + DrawCenteredText (s, y, videoname); + y += 16; DrawCenteredText (s, y, "Press ESCAPE to exit."); @@ -79,6 +85,8 @@ main (int argc, char *argv[]) SDL_WM_SetCaption ("Key Jammer", "Key Jammer"); + SDL_VideoDriverName (videoname, BUFFERSIZE); + for (i = 0; i < SDLK_LAST; i++) { keystate[i] = 0;