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

Commit

Permalink
This patch isn't needed because you have the window and can do [nswin…
Browse files Browse the repository at this point in the history
…dow contentView] yourself.

I'm rolling this back so we minimize the things exposed that we have to keep consistent in the API.
  • Loading branch information
slouken committed Jun 6, 2013
1 parent 4838a0d commit 40bebd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions include/SDL_syswm.h
Expand Up @@ -82,7 +82,6 @@ struct SDL_SysWMinfo;
#include <Cocoa/Cocoa.h>
#else
typedef struct _NSWindow NSWindow;
typedef struct _NSView NSView;
#endif
#endif

Expand Down Expand Up @@ -188,7 +187,6 @@ 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: 0 additions & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1133,7 +1133,6 @@ - (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 40bebd1

Please sign in to comment.