gl/cocoa: fix compiler warning
Use the reshape function after being defined. The other way would have been to declare the reshape function in the header. gstglwindow_cocoa.m: In function '-[GstGLNSView drawRect:]': gstglwindow_cocoa.m:555: warning: 'GstGLNSView' may not respond to '-reshape' gstglwindow_cocoa.m:555: warning: (Messages without a matching method signature gstglwindow_cocoa.m:555: warning: will be assumed to return 'id' and accept gstglwindow_cocoa.m:555: warning: '...' as arguments.)
This commit is contained in:
parent
dda95aeb50
commit
11661ceca9
@ -551,10 +551,6 @@ resize_cb (gpointer data)
|
||||
[super renewGState];
|
||||
}
|
||||
|
||||
- (void)drawRect: (NSRect)dirtyRect {
|
||||
[self reshape:nil];
|
||||
}
|
||||
|
||||
- (void)reshape: (NSNotification*)notification {
|
||||
GstGLWindow *window;
|
||||
|
||||
@ -583,6 +579,10 @@ resize_cb (gpointer data)
|
||||
}
|
||||
}
|
||||
|
||||
- (void)drawRect: (NSRect)dirtyRect {
|
||||
[self reshape:nil];
|
||||
}
|
||||
|
||||
- (BOOL) isOpaque {
|
||||
return YES;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user