Update cocoa_common.m

This commit is contained in:
Autechre 2021-01-19 04:51:38 +01:00 committed by GitHub
parent a83c328631
commit 18170486cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,7 @@
static CocoaView* g_instance;
/* forward declarations */
void cocoa_gl_gfx_ctx_update(void);
#ifdef HAVE_COCOATOUCH
void *glkitview_init(void);
@ -105,8 +104,11 @@ void *glkitview_init(void);
- (void)setFrame:(NSRect)frameRect
{
[super setFrame:frameRect];
/* forward declarations */
#if defined(HAVE_OPENGL)
void cocoa_gl_gfx_ctx_update(void);
cocoa_gl_gfx_ctx_update();
#endif
}
/* Stop the annoying sound when pressing a key. */