From a5930175955af12cc9d4bce7636efb8311a0d88c Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 22 Apr 2013 12:36:00 +0100 Subject: [PATCH] Plugin host compile fix. --- .../juce_audio_processors/format_types/juce_VSTPluginFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 63941b4593..67e9a72660 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2619,7 +2619,7 @@ private: { if (ComponentPeer* const peer = getPeer()) { - const Point pos (getScreenPosition() - peer->getScreenPosition()); + const Point pos (peer->globalToLocal (getScreenPosition())); ERect r; r.left = (VstInt16) pos.getX(); r.top = (VstInt16) pos.getY();