(svn r21576) -Codechange: [OSX] Deduplicate code by moving the handling of the view for windowed screen drivers to a common class
This commit is contained in:
@@ -124,6 +124,15 @@ void QZ_HideMouse();
|
||||
|
||||
uint QZ_ListModes(OTTD_Point *modes, uint max_modes, CGDirectDisplayID display_id, int display_depth);
|
||||
|
||||
/* Subclass of NSView to fix Quartz rendering */
|
||||
@interface OTTD_CocoaView : NSView {
|
||||
CocoaSubdriver *driver;
|
||||
}
|
||||
- (void)setDriver:(CocoaSubdriver*)drv;
|
||||
- (void)drawRect:(NSRect)rect;
|
||||
- (BOOL)isOpaque;
|
||||
@end
|
||||
|
||||
/** Delegate for our NSWindow to send ask for quit on close */
|
||||
@interface OTTD_CocoaWindowDelegate : NSObject {
|
||||
CocoaSubdriver *driver;
|
||||
|
||||
Reference in New Issue
Block a user