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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user