aboutsummaryrefslogtreecommitdiff
path: root/graphics/imagedec.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-02 14:16:31 +0000
committerMax Horn2006-04-02 14:16:31 +0000
commit9217472f0e4e801659c0a448dcbf57c28fd36ee2 (patch)
treeb880dfbd4a18f93f78931749004c3a4e128f2f59 /graphics/imagedec.cpp
parent72f4a1c76cb8aedf6f953e57090134320d7291b8 (diff)
downloadscummvm-rg350-9217472f0e4e801659c0a448dcbf57c28fd36ee2.tar.gz
scummvm-rg350-9217472f0e4e801659c0a448dcbf57c28fd36ee2.tar.bz2
scummvm-rg350-9217472f0e4e801659c0a448dcbf57c28fd36ee2.zip
With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
svn-id: r21557
Diffstat (limited to 'graphics/imagedec.cpp')
-rw-r--r--graphics/imagedec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/imagedec.cpp b/graphics/imagedec.cpp
index 6dfb286f11..2cc21aa62f 100644
--- a/graphics/imagedec.cpp
+++ b/graphics/imagedec.cpp
@@ -123,7 +123,7 @@ Surface *BMPDecoder::decodeImage(Common::SeekableReadStream &stream) {
b = stream.readByte();
g = stream.readByte();
r = stream.readByte();
- *curPixel = OSystem::instance().RGBToColor(r, g, b);
+ *curPixel = g_system->RGBToColor(r, g, b);
++curPixel;
}
stream.seek(pitchAdd, SEEK_CUR);