Hello,
I am getting this error using live build and don’t quite know how to translate it as the code compiles just fine in xCode and the plug does what I expect it to.
projucer_LiveComponentUtils.cpp: no viable conversion from ‘Rectangle<int>’ to ‘Rectangle<float>’
The viewport bounds are all ints in resized()…
component1->setBounds (20, 72, 224, 288);
The error shows itself as being related to visibleArea in the paint method…
void paint (Graphics& g) override
{
auto visibleArea = viewport.getBounds();
g.fillCheckerBoard (visibleArea, 24, 24, Colour (0xffeeeeee), Colour (0xffffffff));
drawInnerShadow (g, visibleArea, 8);
}
I am sure I am doing something that is quite simple, quite simply wrong, but I have no earthly idea what that might be. Any help you can offer would be much appreciated.
Thank you very much!