src/video/x11/SDL_x11window.c
changeset 4902 50d0bff24d81
parent 4862 7b1d35d98294
child 4937 24d44c7c4c63
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;