This commit is contained in:
twinaphex 2020-12-27 20:01:41 +01:00
parent b1af12efc9
commit 9ddc39af59
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ void *nsview_get_ptr(void)
return (BRIDGE void *)g_instance;
}
void nsview_set_ptr(CocoaView *p) { g_instance = p; }
void nsview_set_ptr(void *p) { g_instance = (CocoaView*)p; }
#if TARGET_OS_OSX
static NSOpenGLPixelFormat* g_format;

View File

@ -109,7 +109,7 @@ extern apple_frontend_settings_t apple_frontend_settings;
void *nsview_get_ptr(void);
void nsview_set_ptr(CocoaView *ptr);
void nsview_set_ptr(void *ptr);
void *get_chosen_screen(void);