Added _GLFW_USE_RETINA.

This commit is contained in:
Camilla Berglund
2014-02-10 13:45:13 +01:00
parent b4c03b992c
commit 84377c6175
6 changed files with 19 additions and 0 deletions
+2
View File
@@ -940,7 +940,9 @@ static GLboolean createWindow(_GLFWwindow* window,
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6)
{
#if defined(_GLFW_USE_RETINA)
[window->ns.view setWantsBestResolutionOpenGLSurface:YES];
#endif
if (wndconfig->resizable)
[window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];