Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11events.c @ 2306:1a8bab15a45d
Fixed compile errors
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 07 Feb 2008 16:00:29 +0000 |
parents | fbe8ff44c519 |
children | 4ac07ae446d3 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c Thu Feb 07 15:31:09 2008 +0000 +++ b/src/video/x11/SDL_x11events.c Thu Feb 07 16:00:29 2008 +0000 @@ -145,7 +145,7 @@ #ifdef DEBUG_XEVENTS printf("MappingNotify!\n"); #endif - X11_UpdateKeymap(this); + X11_UpdateKeymap(_this); } break; @@ -177,7 +177,7 @@ case KeyPress:{ KeyCode keycode = xevent.xkey.keycode; KeySym keysym = NoSymbol; - char text[sizeof(SDL_TEXTINPUTEVENT_TEXT_SIZE)]; + char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; Uint32 ucs4 = 0; #ifdef DEBUG_XEVENTS @@ -199,7 +199,7 @@ #endif /* Xutf8LookupString(), works for Latin-1 */ SDL_zero(text); - XLookupString(&xevent, text, sizeof(text), &keysym, NULL); + XLookupString(&xevent.xkey, text, sizeof(text), &keysym, NULL); if (*text) { printf("Sending text event %s\n", text); SDL_SendKeyboardText(videodata->keyboard, text);