mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: Fix numeric conversion warnings
This commit is contained in:
parent
ef1926f916
commit
837ab64dbd
6 changed files with 15 additions and 15 deletions
|
|
@ -228,24 +228,24 @@ private:
|
|||
|
||||
const float xmargin = 3.0f;
|
||||
const float ymargin = 3.0f;
|
||||
const float fontHeight = 0.4f * height;
|
||||
const float deviceNameWidth = 0.6f * width;
|
||||
const float fontHeight = 0.4f * (float) height;
|
||||
const float deviceNameWidth = 0.6f * (float) width;
|
||||
|
||||
g.setFont (fontHeight);
|
||||
|
||||
g.setColour (getDeviceNameFontColour (device.connectionStatus));
|
||||
g.drawText (device.name,
|
||||
Rectangle<float> (xmargin, ymargin, deviceNameWidth - (2.0f * xmargin), height - (2.0f * ymargin)),
|
||||
Rectangle<float> (xmargin, ymargin, deviceNameWidth - (2.0f * xmargin), (float) height - (2.0f * ymargin)),
|
||||
Justification::topLeft, true);
|
||||
|
||||
g.setColour (getDeviceStatusFontColour (device.connectionStatus));
|
||||
g.drawText (statusString,
|
||||
Rectangle<float> (deviceNameWidth + xmargin, ymargin,
|
||||
width - deviceNameWidth - (2.0f * xmargin), height - (2.0f * ymargin)),
|
||||
(float) width - deviceNameWidth - (2.0f * xmargin), (float) height - (2.0f * ymargin)),
|
||||
Justification::topRight, true);
|
||||
|
||||
g.setColour (Colours::grey);
|
||||
g.drawHorizontalLine (height - 1, xmargin, width);
|
||||
g.drawHorizontalLine (height - 1, xmargin, (float) width);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue