diff 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
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Sep 27 01:30:42 2010 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Sep 29 21:13:52 2010 -0700
@@ -708,7 +708,7 @@
 
     if (info->version.major <= SDL_MAJOR_VERSION) {
         info->subsystem = SDL_SYSWM_COCOA;
-        info->info.cocoa.window = nswindow;
+        info->cocoa.window = nswindow;
         return SDL_TRUE;
     } else {
         SDL_SetError("Application not compiled with SDL %d.%d\n",