Browse Source

Fixed an OSX plugin build error.

tags/2021-05-28
jules 11 years ago
parent
commit
20020a83fe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_plugin_client/utility/juce_FakeMouseMoveGenerator.h

+ 2
- 2
modules/juce_audio_plugin_client/utility/juce_FakeMouseMoveGenerator.h View File

@@ -48,10 +48,10 @@ public:
const ModifierKeys mods (ModifierKeys::getCurrentModifiers());
if (! mods.isAnyMouseButtonDown())
if (Component* const comp = Desktop::getInstance().findComponentAt (screenPos))
if (Component* const comp = Desktop::getInstance().findComponentAt (screenPos.roundToInt()))
if (ComponentPeer* const peer = comp->getPeer())
if (! peer->isFocused())
peer->handleMouseEvent (0, peer->globalToLocal (screenPos.toFloat()), mods, Time::currentTimeMillis());
peer->handleMouseEvent (0, peer->globalToLocal (screenPos), mods, Time::currentTimeMillis());
}
}


Loading…
Cancel
Save