Okay, I had the time to do a few test.
It doesn’t look correct, all text is missing in this graphic as well as in every other svg file for my GUI. This text was definitively shown before 5.1.
Second, RectanglePlacement::stretchToFit doesn’t work as it worked before with these images, that’s the reason why they are so small. It seems to only fill 25% of the width and height of the rectangle passed in
The only thing I do is creating a rectangle to paint the image in and then draw it, just like this:
Rectangle<float> backgroundArea (0, 0, getWidth(), getHeight());
backgroundImage.drawWithitn (g, backgroundArea, RectanglePlacement::stretchToFit, 1.0);
Any idea what could go wrong?