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

Projucer: Fixed a conversion warning in some autogenerated code

This commit is contained in:
ed 2019-10-15 09:30:53 +01:00
parent 32a0208147
commit d332fcc3c3

View file

@ -147,7 +147,7 @@ void PaintElementImage::fillInGeneratedCode (GeneratedCode& code, String& paintM
r << " jassert (" << imageVariable << " != 0);\n"
<< " if (" << imageVariable << " != 0)\n"
<< " " << imageVariable << "->drawWithin (g, Rectangle<float> (x, y, width, height),\n"
<< " " << imageVariable << "->drawWithin (g, Rectangle<int> (x, y, width, height).toFloat(),\n"
<< " " << String::repeatedString (" ", imageVariable.length() + 18)
<< (mode == stretched ? "RectanglePlacement::stretchToFit"
: (mode == proportionalReducingOnly ? "RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize"