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

Windows: Fixed a bug with DPI-aware VSTs in Steinberg hosts using the OpenGL renderer

This commit is contained in:
ed 2019-05-10 17:32:55 +01:00
parent 2830ecec0a
commit 2af1de45d7
3 changed files with 26 additions and 11 deletions

View file

@ -36,6 +36,10 @@ extern bool shouldScaleGLWindow (void* hwnd);
bool juce_shouldDoubleScaleNativeGLWindow() { return false; }
#endif
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
void setProcessDPIAwarenessIfNecessary (void*);
#endif
//==============================================================================
class OpenGLContext::NativeContext
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
@ -101,6 +105,10 @@ public:
bool initialiseOnRenderThread (OpenGLContext& c)
{
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
setProcessDPIAwarenessIfNecessary (nativeWindow->getNativeHandle());
#endif
context = &c;
return true;
}