[Solved] Graphics::setTiledImageFill() doesn't work


#1

Hi

Graphics::setTiledImageFill() doesn't work.

Is this a bug or I missed something?

My code:


void MainContentComponent::paint(Graphics& g)
{
    g.fillAll();
    g.setTiledImageFill(backgroundImg, 0, 0, 1.0f);
}

#2

Swap the order of your statements. The set statement just sets the style of fill, it doesn't actually perform the fill.


#3

Ah! You were right! It works!

Thanks very much!yes