Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 731 - No mechanism to extract the NSView for 3d library
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 21, 2013
1 parent f019635 commit 5f6ef90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/SDL_syswm.h
Expand Up @@ -82,6 +82,7 @@ struct SDL_SysWMinfo;
#include <Cocoa/Cocoa.h>
#else
typedef struct _NSWindow NSWindow;
typedef struct _NSView NSView;
#endif
#endif

Expand Down Expand Up @@ -187,6 +188,7 @@ struct SDL_SysWMinfo
struct
{
NSWindow *window; /* The Cocoa window */
NSView *view; /* The Cocoa view */
} cocoa;
#endif
#if defined(SDL_VIDEO_DRIVER_UIKIT)
Expand Down
1 change: 1 addition & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1131,6 +1131,7 @@ - (void)resetCursorRects
if (info->version.major <= SDL_MAJOR_VERSION) {
info->subsystem = SDL_SYSWM_COCOA;
info->info.cocoa.window = nswindow;
info->info.cocoa.view = [nswindow contentView];
return SDL_TRUE;
} else {
SDL_SetError("Application not compiled with SDL %d.%d\n",
Expand Down

0 comments on commit 5f6ef90

Please sign in to comment.