Browse Source

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

tags/2021-05-28
ed 7 years ago
parent
commit
ba68fb0212
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_opengl/native/juce_OpenGL_win32.h

+ 1
- 1
modules/juce_opengl/native/juce_OpenGL_win32.h 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:


Loading…
Cancel
Save