aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2009-01-23 23:50:54 +0000
committerMax Horn2009-01-23 23:50:54 +0000
commit5556fc7f72856fde1746c89792d97bd826da33a2 (patch)
treee47901665a0e52b5e3d3d5613968fd3a6033039b /gui
parent4d5702606f7eb4c62ee07587724c1f21873bc096 (diff)
downloadscummvm-rg350-5556fc7f72856fde1746c89792d97bd826da33a2.tar.gz
scummvm-rg350-5556fc7f72856fde1746c89792d97bd826da33a2.tar.bz2
scummvm-rg350-5556fc7f72856fde1746c89792d97bd826da33a2.zip
Changed Graphics::ImageDecoder to allow custom PixelFormats
svn-id: r36026
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 89b666ce58..78b4545270 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -578,11 +578,11 @@ bool ThemeEngine::addBitmap(const Common::String &filename) {
return true;
// If not, try to load the bitmap via the ImageDecoder class.
- surf = Graphics::ImageDecoder::loadFile(filename);
+ surf = Graphics::ImageDecoder::loadFile(filename, _overlayFormat);
if (!surf && _themeArchive) {
Common::SeekableReadStream *stream = _themeArchive->createReadStreamForMember(filename);
if (stream) {
- surf = Graphics::ImageDecoder::loadFile(*stream);
+ surf = Graphics::ImageDecoder::loadFile(*stream, _overlayFormat);
delete stream;
}
}