changeset 1596:56f952883795

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 07:38:32 +0000
parents 4aa7df2476e7
children 06e9f1c7611b
files src/video/wscons/SDL_wsconsevents.c src/video/wscons/SDL_wsconsvideo.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/wscons/SDL_wsconsevents.c	Thu Mar 23 07:34:03 2006 +0000
+++ b/src/video/wscons/SDL_wsconsevents.c	Thu Mar 23 07:38:32 2006 +0000
@@ -121,8 +121,7 @@
       unsigned char c = buf[i] & 0x7f;
       if (c == 224) // special key prefix -- what should we do with it?
 	continue;
-      int release = (buf[i] & 0x80) != 0;
-      posted += SDL_PrivateKeyboard(release ? SDL_RELEASED : SDL_PRESSED,
+      posted += SDL_PrivateKeyboard((buf[i] & 0x80) ? SDL_RELEASED : SDL_PRESSED,
 				    TranslateKey(c, &keysym));
     }
   }
--- a/src/video/wscons/SDL_wsconsvideo.c	Thu Mar 23 07:34:03 2006 +0000
+++ b/src/video/wscons/SDL_wsconsvideo.c	Thu Mar 23 07:38:32 2006 +0000
@@ -70,10 +70,10 @@
 void WSCONS_ReportError(char *fmt, ...)
 {
   char message[200];
+  va_list vaArgs;
   
   message[199] = '\0';
   
-  va_list vaArgs;
   va_start(vaArgs, fmt);
   vsnprintf(message, 199, fmt, vaArgs);
   va_end(vaArgs);