From b01f8b7737eeea8964bee9deefd7fb4bba9e0f9f Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 7 Sep 2019 20:57:48 +0100 Subject: [PATCH] Use CGSize/CGRect where appropriate for 32-bit support --- gl-natives/src/main/c/jaggl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl-natives/src/main/c/jaggl.c b/gl-natives/src/main/c/jaggl.c index bcc1f40..e28111f 100644 --- a/gl-natives/src/main/c/jaggl.c +++ b/gl-natives/src/main/c/jaggl.c @@ -242,7 +242,7 @@ static void *jaggl_proc_addr(const char *name) { [lock lock]; /* get current size */ - NSSize size = self.bounds.size; + CGSize size = self.bounds.size; GLint width = (GLint) size.width; GLint height = (GLint) size.height; @@ -1162,7 +1162,7 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_choosePixelFormat1(JNIEnv *env, jc */ jint x = dsi->bounds.x; /* should be dsi->bounds.x - insets.left */ jint y = 0; /* should be dsi->bounds.y - insets.top */ - jaggl_layer.frame = NSMakeRect(x, platformInfo.windowLayer.bounds.size.height - y - dsi->bounds.height, dsi->bounds.width, dsi->bounds.height); + jaggl_layer.frame = CGRectMake(x, platformInfo.windowLayer.bounds.size.height - y - dsi->bounds.height, dsi->bounds.width, dsi->bounds.height); [jaggl_layer setNeedsDisplay]; }); } else {