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

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

This commit is contained in:
ed 2019-05-14 11:10:44 +01:00
parent 5c19eacd0b
commit abe9787bd3

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);