Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoawindow.m @ 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 | 69d9db65f248 |
children | 834ce48a19c2 |
comparison
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; |