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:
parent
5c19eacd0b
commit
abe9787bd3
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue