(Apple) Update apple_gfx_context.c.inl

This commit is contained in:
twinaphex 2014-09-27 16:48:00 +02:00
parent 94de11b060
commit 6807605e4e
1 changed files with 5 additions and 5 deletions

View File

@ -102,7 +102,7 @@ static bool apple_gfx_ctx_set_video_mode(void *data, unsigned width, unsigned he
{ {
(void)data; (void)data;
#ifdef OSX #ifdef OSX
// TODO: Sceen mode support // TODO: Screen mode support
if (fullscreen && !g_has_went_fullscreen) if (fullscreen && !g_has_went_fullscreen)
{ {
@ -187,13 +187,13 @@ static void apple_gfx_ctx_swap_buffers(void *data)
static gfx_ctx_proc_t apple_gfx_ctx_get_proc_address(const char *symbol_name) static gfx_ctx_proc_t apple_gfx_ctx_get_proc_address(const char *symbol_name)
{ {
#ifdef MAC_OS_X_VERSION_10_7
return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID), return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID),
(__bridge CFStringRef)BOXSTRING(symbol_name)); #ifdef MAC_OS_X_VERSION_10_7
(__bridge CFStringRef)BOXSTRING(symbol_name)
#else #else
return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID), (CFStringRef)BOXSTRING(symbol_name)
(CFStringRef)BOXSTRING(symbol_name));
#endif #endif
);
} }
static void gfx_ctx_check_window(void *data, bool *quit, static void gfx_ctx_check_window(void *data, bool *quit,