From 5556fc7f72856fde1746c89792d97bd826da33a2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 23 Jan 2009 23:50:54 +0000 Subject: Changed Graphics::ImageDecoder to allow custom PixelFormats svn-id: r36026 --- gui/ThemeEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') 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; } } -- cgit v1.2.3