Fix mac build error with SDK < 10.7, this version is not then defined then as

pointed out by Patrick Boelens on the mailing list.
This commit is contained in:
Brecht Van Lommel 2012-12-14 20:56:14 +00:00
parent 073669dd85
commit f1d487d1c4

@ -578,7 +578,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
setDrawingContextType(type); setDrawingContextType(type);
updateDrawingContext(); updateDrawingContext();
activateDrawingContext(); activateDrawingContext();
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 // retina support started with 10.7.4 afaik #if defined(MAC_OS_X_VERSION_10_7) && (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) { if (m_systemCocoa->m_nativePixel) {
[m_openGLView setWantsBestResolutionOpenGLSurface:YES]; [m_openGLView setWantsBestResolutionOpenGLSurface:YES];
NSRect backingBounds = [m_openGLView convertRectToBacking:[m_openGLView bounds]]; NSRect backingBounds = [m_openGLView convertRectToBacking:[m_openGLView bounds]];