*** empty log message ***

This commit is contained in:
Sam Lantinga
2006-03-23 07:38:32 +00:00
parent 5542688e36
commit 0257a5560c
2 changed files with 2 additions and 3 deletions

View File

@@ -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));
}
}

View File

@@ -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);