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:
Julien Isorce 2014-11-03 22:59:41 +00:00 committed by Tim-Philipp Müller
parent 653c04b121
commit a581d479ff

View file

@ -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;
}