Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 4810:7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Mon, 26 Jul 2010 20:41:45 -0400 |
parents | 329708ffe2a7 |
children | 7b1d35d98294 |
comparison
equal
deleted
inserted
replaced
4809:329708ffe2a7 | 4810:7a602fd2121f |
---|---|
103 NULL | 103 NULL |
104 }; | 104 }; |
105 | 105 |
106 static SDL_VideoDevice *_this = NULL; | 106 static SDL_VideoDevice *_this = NULL; |
107 | 107 |
108 SDL_VideoDisplay* SDL_ThisDisplay() { | |
109 return SDL_CurrentDisplay; | |
110 } | |
111 | |
112 #define CHECK_WINDOW_MAGIC(window, retval) \ | 108 #define CHECK_WINDOW_MAGIC(window, retval) \ |
113 if (!_this) { \ | 109 if (!_this) { \ |
114 SDL_UninitializedVideo(); \ | 110 SDL_UninitializedVideo(); \ |
115 return retval; \ | 111 return retval; \ |
116 } \ | 112 } \ |