mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
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:
+6
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user