src/video/cocoa/SDL_cocoawindow.m
changeset 7282 df78adc8ba04
parent 7271 963d2ba35cfe
child 7389 361d1a0c90f6
equal deleted inserted replaced
7281:cd5516b9263d 7282:df78adc8ba04
  1131     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
  1131     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
  1132 
  1132 
  1133     if (info->version.major <= SDL_MAJOR_VERSION) {
  1133     if (info->version.major <= SDL_MAJOR_VERSION) {
  1134         info->subsystem = SDL_SYSWM_COCOA;
  1134         info->subsystem = SDL_SYSWM_COCOA;
  1135         info->info.cocoa.window = nswindow;
  1135         info->info.cocoa.window = nswindow;
  1136         info->info.cocoa.view = [nswindow contentView];
       
  1137         return SDL_TRUE;
  1136         return SDL_TRUE;
  1138     } else {
  1137     } else {
  1139         SDL_SetError("Application not compiled with SDL %d.%d\n",
  1138         SDL_SetError("Application not compiled with SDL %d.%d\n",
  1140                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
  1139                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
  1141         return SDL_FALSE;
  1140         return SDL_FALSE;