From 2228fa1a467ab724002a6c82a9405987338896ac Mon Sep 17 00:00:00 2001 From: IoIxD Date: Wed, 15 Apr 2026 21:46:37 -0700 Subject: [PATCH] fix build --- src/widget/opengl.c | 6 +++--- src/widget/opengl_cocoa.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widget/opengl.c b/src/widget/opengl.c index 2cb612e..39b5510 100644 --- a/src/widget/opengl.c +++ b/src/widget/opengl.c @@ -380,8 +380,8 @@ static void mwOpenGLMakeCurrentImpl(MwWidget handle) { #ifdef USE_GDI if(handle->lowlevel->common.type == MwLLBackendGDI) { - gdiopengl_t* o = handle->internal; - BOOL (APIENTRY *swap_interval_ext)(int) = NULL; + gdiopengl_t* o = handle->internal; + BOOL(APIENTRY * swap_interval_ext)(int) = NULL; o->wglMakeCurrent(o->dc, o->gl); @@ -498,7 +498,7 @@ static void func_handler(MwWidget handle, const char* name, void* out, } } -MwClassRec MwOpenGLClassRec = {create, /* create */ +MwClassRec MwOpenGLClassRec = {wcreate, /* create */ destroy, /* destroy */ NULL, /* draw */ NULL, /* click */ diff --git a/src/widget/opengl_cocoa.m b/src/widget/opengl_cocoa.m index 27c2158..a4d2bfa 100644 --- a/src/widget/opengl_cocoa.m +++ b/src/widget/opengl_cocoa.m @@ -111,7 +111,7 @@ static void func_handler(MwWidget handle, const char* name, void* out, @end -MwClassRec MwOpenGLClassRec = {create, /* create */ +MwClassRec MwOpenGLClassRec = {wcreate, /* create */ destroy, /* destroy */ NULL, /* draw */ NULL, /* click */