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

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);
}

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

Ah! You were right! It works!

Thanks very much!yes