gl/cocoa: Use NSRect instead of CGRect
authorSebastian Dröge <sebastian@centricular.com>
Tue, 24 Apr 2018 22:08:58 +0000 (01:08 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 24 Apr 2018 22:09:40 +0000 (01:09 +0300)
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

gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m

index ab1d4e1..ce101ac 100644 (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);