mirror of
https://github.com/yawut/SDL.git
synced 2026-07-13 07:12:12 -05:00
Fixed compiler warning.
This commit is contained in:
parent
2bc9edb3c8
commit
cd189f403d
|
|
@ -187,8 +187,9 @@ static char* X11_URIToLocal(char* uri) {
|
|||
#if SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
|
||||
static void X11_HandleGenericEvent(SDL_VideoData *videodata,XEvent event)
|
||||
{
|
||||
if (XGetEventData(videodata->display, &event)) {
|
||||
XGenericEventCookie *cookie = &event.xcookie;
|
||||
/* event is a union, so cookie == &event, but this is type safe. */
|
||||
XGenericEventCookie *cookie = &event.xcookie;
|
||||
if (XGetEventData(videodata->display, cookie)) {
|
||||
X11_HandleXinput2Event(videodata, cookie);
|
||||
XFreeEventData(videodata->display, cookie);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user