diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2012-12-14 12:48:48 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2012-12-14 12:48:48 +0400 |
commit | 3d99ba125f74f77b4deea9a6385bcc5ffd6849b2 (patch) | |
tree | e4235d8f80e41f2799d15301d5cb3caeb0bc7d2f /intern | |
parent | 20846bee03ebae035120744f463c45fc741ca894 (diff) |
OSX/nativePixel: fix compile for OSX < 10.7
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index e044967fdef..3e967e034c4 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -578,13 +578,13 @@ GHOST_WindowCocoa::GHOST_WindowCocoa( setDrawingContextType(type); updateDrawingContext(); activateDrawingContext(); - +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 // retina support started with 10.7.4 afaik if (m_systemCocoa->m_nativePixel) { [m_openGLView setWantsBestResolutionOpenGLSurface:YES]; NSRect backingBounds = [m_openGLView convertRectToBacking:[m_openGLView bounds]]; m_systemCocoa->m_nativePixelSize = (float)backingBounds.size.width / (float)rect.size.width; } - +#endif m_tablet.Active = GHOST_kTabletModeNone; |