comparison src/video/x11/SDL_x11window.c @ 4902:50d0bff24d81

Make the union nameless to reduce the complexity of the API. (Are there any compilers still in use that don't support this?)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 29 Sep 2010 21:13:52 -0700
parents 7b1d35d98294
children 24d44c7c4c63
comparison
equal deleted inserted replaced
4901:deadc1219bea 4902:50d0bff24d81
1123 Display *display = data->videodata->display; 1123 Display *display = data->videodata->display;
1124 1124
1125 if (info->version.major == SDL_MAJOR_VERSION && 1125 if (info->version.major == SDL_MAJOR_VERSION &&
1126 info->version.minor == SDL_MINOR_VERSION) { 1126 info->version.minor == SDL_MINOR_VERSION) {
1127 info->subsystem = SDL_SYSWM_X11; 1127 info->subsystem = SDL_SYSWM_X11;
1128 info->info.x11.display = display; 1128 info->x11.display = display;
1129 info->info.x11.window = data->xwindow; 1129 info->x11.window = data->xwindow;
1130 return SDL_TRUE; 1130 return SDL_TRUE;
1131 } else { 1131 } else {
1132 SDL_SetError("Application not compiled with SDL %d.%d\n", 1132 SDL_SetError("Application not compiled with SDL %d.%d\n",
1133 SDL_MAJOR_VERSION, SDL_MINOR_VERSION); 1133 SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
1134 return SDL_FALSE; 1134 return SDL_FALSE;