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:
parent
2830ecec0a
commit
2af1de45d7
3 changed files with 26 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue