Commit b747ae96 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

gl/cocoa: Use NSRect instead of CGRect

On 64 bit systems they're typedefs of each other but on 32 bit systems
not, and we pass the rect to an API that expects a NSRect
parent 9a3ee483
...@@ -484,7 +484,7 @@ _set_render_rectangle (gpointer data) ...@@ -484,7 +484,7 @@ _set_render_rectangle (gpointer data)
} }
view = [internal_win_id contentView]; view = [internal_win_id contentView];
CGRect newMainViewFrame = CGRectMake(render->rect.x, NSRect newMainViewFrame = NSMakeRect(render->rect.x,
render->rect.y, render->rect.y,
render->rect.w, render->rect.w,
render->rect.h); render->rect.h);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment