src/video/cocoa/SDL_cocoawindow.m
changeset 4902 50d0bff24d81
parent 4900 69d9db65f248
child 4915 834ce48a19c2
equal deleted inserted replaced
4901:deadc1219bea 4902:50d0bff24d81
   706 {
   706 {
   707     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
   707     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
   708 
   708 
   709     if (info->version.major <= SDL_MAJOR_VERSION) {
   709     if (info->version.major <= SDL_MAJOR_VERSION) {
   710         info->subsystem = SDL_SYSWM_COCOA;
   710         info->subsystem = SDL_SYSWM_COCOA;
   711         info->info.cocoa.window = nswindow;
   711         info->cocoa.window = nswindow;
   712         return SDL_TRUE;
   712         return SDL_TRUE;
   713     } else {
   713     } else {
   714         SDL_SetError("Application not compiled with SDL %d.%d\n",
   714         SDL_SetError("Application not compiled with SDL %d.%d\n",
   715                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   715                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   716         return SDL_FALSE;
   716         return SDL_FALSE;