Browse Source

Windows: Fixed a potential crash in setProcessDPIAwarenessIfNecessary() on Windows 7

tags/2021-05-28
ed 6 years ago
parent
commit
abe9787bd3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

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

@@ -4076,6 +4076,9 @@ JUCE_API bool shouldScaleGLWindow (void* hwnd)
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
JUCE_API void setProcessDPIAwarenessIfNecessary (void* hwnd)
{
if (getProcessDPIAwareness == nullptr)
return;
DPI_Awareness context;
getProcessDPIAwareness (0, &context);


Loading…
Cancel
Save