[Scummvm-cvs-logs] scummvm master -> 3cf79e079256947c3c0c37046fce10d95f390bc2
digitall
dgturner at iee.org
Fri Jan 17 05:29:15 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3cf79e0792 CGE: Further alignment fixes to Bitmap class.
Commit: 3cf79e079256947c3c0c37046fce10d95f390bc2
https://github.com/scummvm/scummvm/commit/3cf79e079256947c3c0c37046fce10d95f390bc2
Author: D G Turner (digitall at scummvm.org)
Date: 2014-01-16T20:32:13-08:00
Commit Message:
CGE: Further alignment fixes to Bitmap class.
This fixes bug #6476 - "DC: Soltys (CGE) crashes at start up".
Changed paths:
engines/cge/bitmap.cpp
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp
index 989d2bb..5acd111 100644
--- a/engines/cge/bitmap.cpp
+++ b/engines/cge/bitmap.cpp
@@ -72,16 +72,16 @@ Bitmap::Bitmap(CGEEngine *vm, uint16 w, uint16 h, uint8 fill)
// + room for wash table
assert(v != NULL);
- *(uint16 *) v = TO_LE_16(kBmpCPY | dsiz); // data chunk hader
+ WRITE_LE_UINT16(v, (kBmpCPY | dsiz)); // data chunk hader
memset(v + 2, fill, dsiz); // data bytes
- *(uint16 *)(v + lsiz - 2) = TO_LE_16(kBmpSKP | ((kScrWidth / 4) - dsiz)); // gap
+ WRITE_LE_UINT16(v + lsiz - 2, (kBmpSKP | ((kScrWidth / 4) - dsiz))); // gap
// Replicate lines
byte *destP;
for (destP = v + lsiz; destP < (v + psiz); destP += lsiz)
Common::copy(v, v + lsiz, destP);
- *(uint16 *)(v + psiz - 2) = TO_LE_16(kBmpEOI); // plane trailer uint16
+ WRITE_LE_UINT16(v + psiz - 2, kBmpEOI); // plane trailer uint16
// Replicate planes
for (destP = v + psiz; destP < (v + 4 * psiz); destP += psiz)
More information about the Scummvm-git-logs
mailing list