diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-07 21:18:25 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-14 11:50:18 +0100 |
commit | 0fc763bc5597e04ee528a34ca2730f780d25fb5e (patch) | |
tree | 5423154a86243834a24b17bbe1072d022acbf786 /src/video/cocoa/cocoa_wnd.h | |
parent | 8906e9e0fd6dc7bd64f9ad2c633da6f110dbf921 (diff) | |
download | openttd-0fc763bc5597e04ee528a34ca2730f780d25fb5e.tar.xz |
Change: [OSX] Render screen in full native resolution on HiDPI displays.
Diffstat (limited to 'src/video/cocoa/cocoa_wnd.h')
-rw-r--r-- | src/video/cocoa/cocoa_wnd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_wnd.h b/src/video/cocoa/cocoa_wnd.h index fa7036396..55f0561b7 100644 --- a/src/video/cocoa/cocoa_wnd.h +++ b/src/video/cocoa/cocoa_wnd.h @@ -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 |