*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Thu, 23 Mar 2006 07:38:32 +0000
changeset 1596 56f952883795
parent 1595 4aa7df2476e7
child 1597 06e9f1c7611b
*** empty log message ***
src/video/wscons/SDL_wsconsevents.c
src/video/wscons/SDL_wsconsvideo.c
--- 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);