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
This commit is contained in:
mcmartin
2006-12-03 03:12:22 +00:00
parent 2de01e9490
commit 35f7e05fc0
+8
View File
@@ -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;