diff options
Diffstat (limited to 'src/video/cocoa/cocoa_v.mm')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index 756c86bfb..3abeaad9f 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -407,6 +407,36 @@ void cocoaReleaseAutoreleasePool() [ _ottd_autorelease_pool release ]; } + + +@implementation OTTD_CocoaView +/** + * Initialize the driver + */ +- (void)setDriver:(CocoaSubdriver*)drv +{ + driver = drv; +} +/** + * Define the opaqueness of the window / screen + * @return opaqueness of window / screen + */ +- (BOOL)isOpaque +{ + return YES; +} +/** + * Draws a rectangle on the screen. + * It's overwritten by the individual drivers but must be defined + */ +- (void)drawRect:(NSRect)invalidRect +{ + return; +} +@end + + + @implementation OTTD_CocoaWindowDelegate /** Initialize the video driver */ - (void)setDriver:(CocoaSubdriver*)drv |