diff options
author | Sam Lantinga <slouken@libsdl.org> | 2014-07-07 12:48:25 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2014-07-07 12:48:25 -0700 |
commit | d19bc1c3b811c3304a1e0ccc3f95741bb8989971 (patch) | |
tree | b38b67bc98b2bc6e09dd4206f6f9a20408c7d005 /src/video/cocoa/SDL_cocoavideo.h | |
parent | 5c4bb7a3cfc0ba8d10e19287bbf5810875ed65e7 (diff) |
Fixed bug 2631 - Mac: minor code cleanup
Alex Szpakowski
Some minor changes to the Mac-specific backend code:
- Fixed up some code style issues (mostly brace style inconsistencies).
- Fixed a compiler warning in SDL_cocoaevents.m.
- Removed some useless code now that the 10.7 SDK is required to build SDL.
- Removed Gestalt(gestaltSystemVersion, ...) call and switched to NSAppKitVersionNumber for version checking code. Using Gestalt with gestaltSystemVersion will give 0x1090 in Mac OS 10.10+, and the whole Gestalt function was deprecated in Mac OS 10.8.
Diffstat (limited to 'src/video/cocoa/SDL_cocoavideo.h')
-rw-r--r-- | src/video/cocoa/SDL_cocoavideo.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/video/cocoa/SDL_cocoavideo.h b/src/video/cocoa/SDL_cocoavideo.h index f194e1f722..288c41fca9 100644 --- a/src/video/cocoa/SDL_cocoavideo.h +++ b/src/video/cocoa/SDL_cocoavideo.h @@ -45,7 +45,6 @@ typedef struct SDL_VideoData { - SInt32 osversion; int allow_spaces; unsigned int modifierFlags; void *key_layout; |