comparison src/video/x11/SDL_x11window.c @ 5056:8b7988f42fcb

Added the ability to get the UIKit window through the SDL API. You can also do this through the native API: UIWindow *window = [[UIApplication sharedApplication] keyWindow]; Also needed to name the union for events and window info.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 16:05:59 -0800
parents 5e3291605ad0
children 455bc74f7034
comparison
equal deleted inserted replaced
5055:2936fc46b015 5056:8b7988f42fcb
1135 Display *display = data->videodata->display; 1135 Display *display = data->videodata->display;
1136 1136
1137 if (info->version.major == SDL_MAJOR_VERSION && 1137 if (info->version.major == SDL_MAJOR_VERSION &&
1138 info->version.minor == SDL_MINOR_VERSION) { 1138 info->version.minor == SDL_MINOR_VERSION) {
1139 info->subsystem = SDL_SYSWM_X11; 1139 info->subsystem = SDL_SYSWM_X11;
1140 info->x11.display = display; 1140 info->info.x11.display = display;
1141 info->x11.window = data->xwindow; 1141 info->info.x11.window = data->xwindow;
1142 return SDL_TRUE; 1142 return SDL_TRUE;
1143 } else { 1143 } else {
1144 SDL_SetError("Application not compiled with SDL %d.%d\n", 1144 SDL_SetError("Application not compiled with SDL %d.%d\n",
1145 SDL_MAJOR_VERSION, SDL_MINOR_VERSION); 1145 SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
1146 return SDL_FALSE; 1146 return SDL_FALSE;