summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_wnd.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-07 21:18:25 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-14 11:50:18 +0100
commit0fc763bc5597e04ee528a34ca2730f780d25fb5e (patch)
tree5423154a86243834a24b17bbe1072d022acbf786 /src/video/cocoa/cocoa_wnd.h
parent8906e9e0fd6dc7bd64f9ad2c633da6f110dbf921 (diff)
downloadopenttd-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.h3
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