aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 17:27:18 +0200
committerJohannes Schickel2011-04-17 20:58:07 +0200
commit663bb3e1e5cee8464aa9e8817dda9d93852f671e (patch)
tree25bdca11a239502d2aad415970e93bf6850d4dae /engines/m4
parent1c0c15dd957cb0a136f5860552aae1875475068b (diff)
downloadscummvm-rg350-663bb3e1e5cee8464aa9e8817dda9d93852f671e.tar.gz
scummvm-rg350-663bb3e1e5cee8464aa9e8817dda9d93852f671e.tar.bz2
scummvm-rg350-663bb3e1e5cee8464aa9e8817dda9d93852f671e.zip
M4: Properly setup format in M4Surface constructor.
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/graphics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/m4/graphics.h b/engines/m4/graphics.h
index 9f7180c387..d74f7adfe8 100644
--- a/engines/m4/graphics.h
+++ b/engines/m4/graphics.h
@@ -118,6 +118,7 @@ public:
}
M4Surface(int width_, int height_, byte *srcPixels, int pitch_) {
bytesPerPixel = 1;
+ format = Graphics::PixelFormat::createFormatCLUT8();
w = width_;
h = height_;
pitch = pitch_;