From 96b44c622cad77eb05790c9da3ef316fe56159c0 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 9 Jan 2013 11:25:16 +0000 Subject: [PATCH] Mac HiDPI support: With the good help from googling, here's code that compiles for 10.6 natively. Will check on 10.7 and 10.8 right after commit. --- intern/ghost/intern/GHOST_WindowCocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 40b9dcaf94e..e89dd1b41dc 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -431,7 +431,8 @@ extern "C" { #if MAC_OS_X_VERSION_MAX_ALLOWED < 1070 @interface NSView (NSOpenGLSurfaceResolution) - (BOOL)wantsBestResolutionOpenGLSurface; -- (void)setWantsBestResolutionOpenGLSurface; +- (void)setWantsBestResolutionOpenGLSurface:(BOOL)flag; +- (NSRect)convertRectToBacking:(NSRect)bounds; @end #endif