aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-18 12:48:37 +0200
committerEinar Johan Trøan Sømåen2012-07-18 12:48:37 +0200
commit764b7edee4b05804ef42c5991b450f606afeaaab (patch)
tree4426338c87aa01493ff232d3c27edef63e63b2ec /engines
parent8d375f054ff07cafb595bbb8ced729589815d65b (diff)
downloadscummvm-rg350-764b7edee4b05804ef42c5991b450f606afeaaab.tar.gz
scummvm-rg350-764b7edee4b05804ef42c5991b450f606afeaaab.tar.bz2
scummvm-rg350-764b7edee4b05804ef42c5991b450f606afeaaab.zip
WINTERMUTE: Put some useable data in the BMP-headers used in saves, so the code can double as debug-dumps for graphics.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BImage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BImage.cpp b/engines/wintermute/Base/BImage.cpp
index 9dd9dbf300..deb0547b3d 100644
--- a/engines/wintermute/Base/BImage.cpp
+++ b/engines/wintermute/Base/BImage.cpp
@@ -152,7 +152,7 @@ bool CBImage::writeBMPToStream(Common::WriteStream *stream) {
/* Since we don't care during reads, we don't care during writes: */
/* uint32 fileSize = */
- stream->writeUint32LE(0);
+ stream->writeUint32LE(54 + _surface->h * _surface->pitch);
/* uint16 res1 = */
stream->writeUint16LE(0);
/* uint16 res2 = */
@@ -176,7 +176,7 @@ bool CBImage::writeBMPToStream(Common::WriteStream *stream) {
return false;
}
- /* uint16 planes = */ stream->writeUint16LE(0);
+ /* uint16 planes = */ stream->writeUint16LE(1);
const uint16 bitsPerPixel = 24;
stream->writeUint16LE(bitsPerPixel);
@@ -184,7 +184,7 @@ bool CBImage::writeBMPToStream(Common::WriteStream *stream) {
stream->writeUint32LE(compression);
/* uint32 imageSize = */
- stream->writeUint32LE(0);
+ stream->writeUint32LE(_surface->h * _surface->pitch);
/* uint32 pixelsPerMeterX = */
stream->writeUint32LE(0);
/* uint32 pixelsPerMeterY = */