Commit 2ac61483 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401603
parent 14da84d3
...@@ -121,8 +121,7 @@ static void updateKeyboard(_THIS) ...@@ -121,8 +121,7 @@ static void updateKeyboard(_THIS)
unsigned char c = buf[i] & 0x7f; unsigned char c = buf[i] & 0x7f;
if (c == 224) // special key prefix -- what should we do with it? if (c == 224) // special key prefix -- what should we do with it?
continue; continue;
int release = (buf[i] & 0x80) != 0; posted += SDL_PrivateKeyboard((buf[i] & 0x80) ? SDL_RELEASED : SDL_PRESSED,
posted += SDL_PrivateKeyboard(release ? SDL_RELEASED : SDL_PRESSED,
TranslateKey(c, &keysym)); TranslateKey(c, &keysym));
} }
} }
......
...@@ -70,10 +70,10 @@ static void WSCONS_UpdateRects(_THIS, int numrects, SDL_Rect *rects); ...@@ -70,10 +70,10 @@ static void WSCONS_UpdateRects(_THIS, int numrects, SDL_Rect *rects);
void WSCONS_ReportError(char *fmt, ...) void WSCONS_ReportError(char *fmt, ...)
{ {
char message[200]; char message[200];
va_list vaArgs;
message[199] = '\0'; message[199] = '\0';
va_list vaArgs;
va_start(vaArgs, fmt); va_start(vaArgs, fmt);
vsnprintf(message, 199, fmt, vaArgs); vsnprintf(message, 199, fmt, vaArgs);
va_end(vaArgs); va_end(vaArgs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment