1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Removed some compiler warnings, fix for OSX file chooser modality.

This commit is contained in:
jules 2012-07-09 10:16:51 +01:00
parent c65c7dd4a4
commit 4253bacb6a
3 changed files with 8 additions and 4 deletions

View file

@ -39,7 +39,7 @@ BubbleComponent::~BubbleComponent()
//==============================================================================
void BubbleComponent::paint (Graphics& g)
{
getLookAndFeel().drawBubble (g, arrowTip.x, arrowTip.y,
getLookAndFeel().drawBubble (g, (float) arrowTip.x, (float) arrowTip.y,
(float) content.getX(), (float) content.getY(),
(float) content.getWidth(), (float) content.getHeight());
@ -109,7 +109,7 @@ void BubbleComponent::setPosition (const Rectangle<int>& rectangleToPointTo)
if (jmax (spaceAbove, spaceBelow) >= jmax (spaceLeft, spaceRight))
{
targetX = rectangleToPointTo.getCentre().x;
arrowTip.x = totalW * 0.5f;
arrowTip.x = totalW / 2;
if (spaceAbove >= spaceBelow)
{
@ -127,7 +127,7 @@ void BubbleComponent::setPosition (const Rectangle<int>& rectangleToPointTo)
else
{
targetY = rectangleToPointTo.getCentre().y;
arrowTip.y = totalH * 0.5f;
arrowTip.y = totalH / 2;
if (spaceLeft > spaceRight)
{