Browse Source

Clang compatibility fix.

tags/2021-05-28
jules 13 years ago
parent
commit
87cb1b7b06
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm

+ 1
- 1
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm View File

@@ -129,7 +129,7 @@ void* attachComponentToWindowRef (Component* comp, void* windowRef)
// HIView into the host's carbon window, and then catching events to see when it gets repositioned
HIViewRef dummyView = 0;
HIImageViewCreate (0, &dummyView);
HIRect r = { {0, 0}, {comp->getWidth(), comp->getHeight()} };
HIRect r = { {0, 0}, { (float) comp->getWidth(), (float) comp->getHeight()} };
HIViewSetFrame (dummyView, &r);
HIViewAddSubview (parentView, dummyView);
comp->getProperties().set ("dummyViewRef", String::toHexString ((pointer_sized_int) (void*) dummyView));


Loading…
Cancel
Save