GUI: Reload all bitmaps on theme reload

Since now we are scaling them, it is essential to scale the originals,
otherwise we have double scaling
This commit is contained in:
Eugene Sandulenko
2021-03-29 23:39:02 +02:00
parent 9c8a0d083b
commit 04f040afce
+6 -2
View File
@@ -692,8 +692,12 @@ bool ThemeEngine::addTextColor(TextColor colorId, int r, int g, int b) {
bool ThemeEngine::addBitmap(const Common::String &filename) {
// Nothing has to be done if the bitmap already has been loaded.
Graphics::Surface *surf = _bitmaps[filename];
if (surf)
return true;
if (surf) {
surf->free();
delete surf;
_bitmaps.erase(filename);
}
const Graphics::Surface *srcSurface = nullptr;