Browse Source

Made it possible to set JUCE_DISABLE_WIN32_DPI_AWARENESS=1 to disable win32 high-res scaling.

tags/2021-05-28
jules 11 years ago
parent
commit
06c31487c1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 2
- 0
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

@@ -177,6 +177,7 @@ static void setWindowZOrder (HWND hwnd, HWND insertAfter)
//==============================================================================
static void setDPIAwareness()
{
#if ! JUCE_DISABLE_WIN32_DPI_AWARENESS
if (JUCEApplicationBase::isStandaloneApp())
{
if (setProcessDPIAwareness == nullptr)
@@ -203,6 +204,7 @@ static void setDPIAwareness()
}
}
}
#endif
}
static double getGlobalDPI()


Loading…
Cancel
Save