Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

This patch isn't needed because you have the window and can do [nswin…

…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 40bebd1f393794d9040bfa4365bc83f3fc03b133
Showing with 0 additions and 3 deletions.
  1. +0 −2 include/SDL_syswm.h
  2. +0 −1 src/video/cocoa/SDL_cocoawindow.m
@@ -82,7 +82,6 @@ struct SDL_SysWMinfo;
#include <Cocoa/Cocoa.h>
#else
typedef struct _NSWindow NSWindow;
typedef struct _NSView NSView;
#endif
#endif

@@ -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)
@@ -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",

0 comments on commit 40bebd1

Please sign in to comment.