diff src/video/cocoa/SDL_cocoawindow.m @ 4900:69d9db65f248

Merged the Windows custom window system hooks into the union used by X11. Added Cocoa custom window system hooks
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Sep 2010 01:24:05 -0700
parents 7b1d35d98294
children 50d0bff24d81
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Sep 27 00:50:46 2010 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Sep 27 01:24:05 2010 -0700
@@ -704,10 +704,11 @@
 SDL_bool
 Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
 {
-    //NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
+    NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
 
     if (info->version.major <= SDL_MAJOR_VERSION) {
-        //info->window = nswindow;
+        info->subsystem = SDL_SYSWM_COCOA;
+        info->info.cocoa.window = nswindow;
         return SDL_TRUE;
     } else {
         SDL_SetError("Application not compiled with SDL %d.%d\n",