From 35116881de2b00530ce04b820c71b15d2964cb43 Mon Sep 17 00:00:00 2001 From: hogliux Date: Mon, 2 Jul 2018 11:43:12 +0100 Subject: [PATCH] VST2: Fixed some compiler-errors in the VST2 hosting code when building with 32-bit Carbon enabled --- .../format_types/juce_VSTPluginFormat.cpp | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 3def2596c5..e257c11992 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -3264,17 +3264,17 @@ private: if (owner.isOpen) { owner.isOpen = false; - owner.dispatch (effEditClose, 0, 0, 0, 0); - owner.dispatch (effEditSleep, 0, 0, 0, 0); + owner.dispatch (Vst2::effEditClose, 0, 0, 0, 0); + owner.dispatch (Vst2::effEditSleep, 0, 0, 0, 0); } } bool getEmbeddedViewSize (int& w, int& h) override { - VstEditorBounds* rect = nullptr; - owner.dispatch (effEditGetRect, 0, 0, &rect, 0); - w = rect->rightmost - rect->leftmost; - h = rect->lower - rect->upper; + Vst2::ERect* rect = nullptr; + owner.dispatch (Vst2::effEditGetRect, 0, 0, &rect, 0); + w = rect->right - rect->left; + h = rect->bottom - rect->top; return true; } @@ -3284,7 +3284,7 @@ private: { alreadyInside = true; getTopLevelComponent()->toFront (true); - owner.dispatch (effEditMouse, x, y, 0, 0); + owner.dispatch (Vst2::effEditMouse, x, y, 0, 0); alreadyInside = false; } else @@ -3298,13 +3298,13 @@ private: if (auto* peer = getPeer()) { auto pos = peer->globalToLocal (getScreenPosition()); - VstEditorBounds r; - r.leftmost = (int16) pos.getX(); - r.upper = (int16) pos.getY(); - r.rightmost = (int16) (r.leftmost + getWidth()); - r.lower = (int16) (r.upper + getHeight()); + Vst2::ERect r; + r.left = (int16) pos.getX(); + r.top = (int16) pos.getY(); + r.right = (int16) (r.left + getWidth()); + r.bottom = (int16) (r.top + getHeight()); - owner.dispatch (effEditDraw, 0, 0, &r, 0); + owner.dispatch (Vst2::effEditDraw, 0, 0, &r, 0); } }