mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
More MSVC warning fixes.
This commit is contained in:
parent
cc8662213b
commit
265fb0e8eb
4 changed files with 4 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ void DrawableText::paint (Graphics& g)
|
|||
g.setFont (scaledFont);
|
||||
g.setColour (colour);
|
||||
|
||||
g.drawFittedText (text, Rectangle<int> (w, h), justification, 0x100000);
|
||||
g.drawFittedText (text, Rectangle<float> (w, h).getSmallestIntegerContainer(), justification, 0x100000);
|
||||
}
|
||||
|
||||
Rectangle<float> DrawableText::getDrawableBounds() const
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public:
|
|||
void paint (Graphics& g)
|
||||
{
|
||||
text.draw (g, getLocalBounds().reduced (6)
|
||||
.removeFromTop (text.getHeight()).toFloat());
|
||||
.removeFromTop ((int) text.getHeight()).toFloat());
|
||||
}
|
||||
|
||||
void resized()
|
||||
|
|
|
|||
|
|
@ -2207,7 +2207,7 @@ void LookAndFeel::drawTabButtonText (TabBarButton& button, Graphics& g, bool isM
|
|||
g.addTransform (t);
|
||||
|
||||
g.drawFittedText (button.getButtonText().trim(),
|
||||
0.0f, 0.0f, (float) length, (float) depth,
|
||||
0, 0, (int) length, (int) depth,
|
||||
Justification::centred,
|
||||
jmax (1, ((int) depth) / 12));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public:
|
|||
column += token.length;
|
||||
}
|
||||
|
||||
as.draw (g, Rectangle<float> (x, y, 10000.0f, (float) lineH));
|
||||
as.draw (g, Rectangle<float> (x, (float) y, 10000.0f, (float) lineH));
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue