Change: [OSX] Render screen in full native resolution on HiDPI displays.

This commit is contained in:
Michael Lutz
2021-01-07 21:18:25 +01:00
parent 8906e9e0fd
commit 0fc763bc55
4 changed files with 45 additions and 6 deletions

View File

@@ -38,6 +38,9 @@ extern NSString *OTTDMainLaunchGameEngine;
/** Subclass of NSView to support mouse awareness and text input. */
@interface OTTD_CocoaView : NSView <NSTextInputClient>
- (NSRect)getRealRect:(NSRect)rect;
- (NSRect)getVirtualRect:(NSRect)rect;
- (CGFloat)getContentsScale;
- (NSPoint)mousePositionFromEvent:(NSEvent *)e;
@end