diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 0f2bb9dc13..6c97aa2441 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1210,8 +1210,8 @@ public: auto scale = Desktop::getInstance().getGlobalScaleFactor(); X11Symbols::getInstance()->xResizeWindow (display, (Window) getWindowHandle(), - static_cast (roundToInt (pos.getWidth() * scale)), - static_cast (roundToInt (pos.getHeight() * scale))); + static_cast (roundToInt ((float) pos.getWidth() * scale)), + static_cast (roundToInt ((float) pos.getHeight() * scale))); #endif #if JUCE_MAC