Codechange: [OSX] Split Window and back buffer creation in Cocoa video driver.

This commit is contained in:
Michael Lutz
2021-01-30 19:13:29 +01:00
parent 0eff7de659
commit 8aaf4ea098
4 changed files with 134 additions and 174 deletions

View File

@@ -42,7 +42,7 @@ extern NSString *OTTDMainLaunchGameEngine;
VideoDriver_Cocoa *driver;
NSTrackingRectTag trackingtag;
}
- (void)setDriver:(VideoDriver_Cocoa *)drv;
- (instancetype)initWithFrame:(NSRect)frameRect andDriver:(VideoDriver_Cocoa *)drv;
- (void)drawRect:(NSRect)rect;
- (BOOL)isOpaque;
- (BOOL)acceptsFirstResponder;
@@ -61,12 +61,11 @@ extern NSString *OTTDMainLaunchGameEngine;
{
VideoDriver_Cocoa *driver;
}
- (void)setDriver:(VideoDriver_Cocoa *)drv;
- (instancetype)initWithDriver:(VideoDriver_Cocoa *)drv;
- (BOOL)windowShouldClose:(id)sender;
- (void)windowDidEnterFullScreen:(NSNotification *)aNotification;
- (void)windowDidChangeScreenProfile:(NSNotification *)aNotification;
- (void)windowDidChangeBackingProperties:(NSNotification *)notification;
- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions;
@end