mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 09:06:29 -05:00
*** empty log message ***
This commit is contained in:
@@ -121,8 +121,7 @@ static void updateKeyboard(_THIS)
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,10 +70,10 @@ static void WSCONS_UpdateRects(_THIS, int numrects, SDL_Rect *rects);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user