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
This commit is contained in:
Sebastian Dröge 2018-04-25 01:08:58 +03:00
parent 3970a35fd6
commit c6f4b5a14f

View file

@ -484,7 +484,7 @@ _set_render_rectangle (gpointer data)
}
view = [internal_win_id contentView];
CGRect newMainViewFrame = CGRectMake(render->rect.x,
NSRect newMainViewFrame = NSMakeRect(render->rect.x,
render->rect.y,
render->rect.w,
render->rect.h);