1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windows: Fixed an OpenGL bug in non-DPI aware windows with a global scale factor != 1.0

This commit is contained in:
ed 2018-12-03 17:15:58 +00:00
parent 77c8a873f3
commit ba68fb0212

View file

@ -166,7 +166,7 @@ public:
if (nativeWindow != nullptr && shouldScaleGLWindow (nativeWindow->getNativeHandle()))
return Desktop::getInstance().getDisplays().findDisplayForRect (screenBounds).scale;
return 1.0;
return Desktop::getInstance().getGlobalScaleFactor();
}
private: