Align DSI bounds comments

master
Graham 5 years ago
parent 6e702752d1
commit 74f7a247d1
  1. 2
      gl-natives/src/main/c/jaggl.c

@ -1161,7 +1161,7 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_choosePixelFormat1(JNIEnv *env, jc
* nothing above the Canvas in the Frame. * nothing above the Canvas in the Frame.
*/ */
jint x = dsi->bounds.x; // should be dsi->bounds.x - insets.left jint x = dsi->bounds.x; // should be dsi->bounds.x - insets.left
jint y = 0; // should be dsi->bounds.y - insets.top jint y = 0; // should be dsi->bounds.y - insets.top
jaggl_layer.frame = CGRectMake(x, platform_info.windowLayer.bounds.size.height - y - dsi->bounds.height, dsi->bounds.width, dsi->bounds.height); jaggl_layer.frame = CGRectMake(x, platform_info.windowLayer.bounds.size.height - y - dsi->bounds.height, dsi->bounds.width, dsi->bounds.height);
[jaggl_layer setNeedsDisplay]; [jaggl_layer setNeedsDisplay];
}); });

Loading…
Cancel
Save