# HG changeset patch # User Sam Lantinga # Date 1143099512 0 # Node ID 56f952883795181bcad7134cf0c56b610c8cac84 # Parent 4aa7df2476e7786c9c8817f81808527f7a46072b *** empty log message *** diff -r 4aa7df2476e7 -r 56f952883795 src/video/wscons/SDL_wsconsevents.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)); } } diff -r 4aa7df2476e7 -r 56f952883795 src/video/wscons/SDL_wsconsvideo.c --- 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);