aboutsummaryrefslogtreecommitdiff
path: root/engines/made/resource.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:29:23 +0200
committerJohannes Schickel2011-04-17 16:29:23 +0200
commitb6fc71b0c5192aea09a240f84e4c380b52c1710b (patch)
tree457b08dc3dcaee509a6154a3b9b3579b3d4b228d /engines/made/resource.cpp
parent7b9b5681488f04a817d70812c18a8f1f88fbc931 (diff)
downloadscummvm-rg350-b6fc71b0c5192aea09a240f84e4c380b52c1710b.tar.gz
scummvm-rg350-b6fc71b0c5192aea09a240f84e4c380b52c1710b.tar.bz2
scummvm-rg350-b6fc71b0c5192aea09a240f84e4c380b52c1710b.zip
MADE: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'engines/made/resource.cpp')
-rw-r--r--engines/made/resource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp
index e556e4ab38..777f0cb443 100644
--- a/engines/made/resource.cpp
+++ b/engines/made/resource.cpp
@@ -95,7 +95,7 @@ void PictureResource::loadRaw(byte *source, int size) {
}
_picture = new Graphics::Surface();
- _picture->create(width, height, 1);
+ _picture->create(width, height, Graphics::PixelFormat::createFormatCLUT8());
decompressImage(source, *_picture, cmdOffs, pixelOffs, maskOffs, lineSize, cmdFlags, pixelFlags, maskFlags);
@@ -171,7 +171,7 @@ void PictureResource::loadChunked(byte *source, int size) {
}
_picture = new Graphics::Surface();
- _picture->create(width, height, 1);
+ _picture->create(width, height, Graphics::PixelFormat::createFormatCLUT8());
decompressImage(source, *_picture, cmdOffs, pixelOffs, maskOffs, lineSize, cmdFlags, pixelFlags, maskFlags);
@@ -227,7 +227,7 @@ void AnimationResource::load(byte *source, int size) {
uint16 lineSize = sourceS->readUint16LE();
Graphics::Surface *frame = new Graphics::Surface();
- frame->create(frameWidth, frameHeight, 1);
+ frame->create(frameWidth, frameHeight, Graphics::PixelFormat::createFormatCLUT8());
decompressImage(source + frameOffs, *frame, cmdOffs, pixelOffs, maskOffs, lineSize, 0, 0, 0, _flags & 1);