(svn r21575) -Codechange: [OSX] Use the same class for the window delegate routines in windowed screen drivers

This commit is contained in:
planetmaker
2010-12-21 15:57:55 +00:00
parent 5a901ed82e
commit 3e42e97681
4 changed files with 51 additions and 96 deletions

View File

@@ -124,4 +124,15 @@ void QZ_HideMouse();
uint QZ_ListModes(OTTD_Point *modes, uint max_modes, CGDirectDisplayID display_id, int display_depth);
/** Delegate for our NSWindow to send ask for quit on close */
@interface OTTD_CocoaWindowDelegate : NSObject {
CocoaSubdriver *driver;
}
- (void)setDriver:(CocoaSubdriver*)drv;
- (BOOL)windowShouldClose:(id)sender;
@end
#endif /* VIDEO_COCOA_H */