aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/bitmap.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2012-02-22 23:18:50 +0100
committerPaul Gilbert2012-02-24 19:46:47 +1100
commit050902756e51e2195f7818bfd002050a73d73d8a (patch)
tree2e83bfce99eead60b04cd661c638fb8d1fd13264 /engines/cge/bitmap.cpp
parenteba87458d399382e639d81e91d6acb3ce13f2252 (diff)
downloadscummvm-rg350-050902756e51e2195f7818bfd002050a73d73d8a.tar.gz
scummvm-rg350-050902756e51e2195f7818bfd002050a73d73d8a.tar.bz2
scummvm-rg350-050902756e51e2195f7818bfd002050a73d73d8a.zip
CGE: Use WRITE_LE_UINT16 for unaligned writes.
Diffstat (limited to 'engines/cge/bitmap.cpp')
-rw-r--r--engines/cge/bitmap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp
index 4b5034756c..37f4eb070e 100644
--- a/engines/cge/bitmap.cpp
+++ b/engines/cge/bitmap.cpp
@@ -198,7 +198,7 @@ BitmapPtr Bitmap::code() {
if ((pix == kPixelTransp) != skip || cnt >= 0x3FF0) { // end of block
cnt |= (skip) ? kBmpSKP : kBmpCPY;
if (_v)
- *cp = TO_LE_16(cnt); // store block description uint16
+ WRITE_LE_UINT16(cp, cnt); // store block description uint16
cp = (uint16 *) im;
im += 2;
@@ -220,7 +220,7 @@ BitmapPtr Bitmap::code() {
} else {
cnt |= kBmpCPY;
if (_v)
- *cp = TO_LE_16(cnt);
+ WRITE_LE_UINT16(cp, cnt);
cp = (uint16 *) im;
im += 2;
@@ -232,13 +232,13 @@ BitmapPtr Bitmap::code() {
if (cnt && ! skip) {
cnt |= kBmpCPY;
if (_v)
- *cp = TO_LE_16(cnt);
+ WRITE_LE_UINT16(cp, cnt);
cp = (uint16 *) im;
im += 2;
}
if (_v)
- *cp = TO_LE_16(kBmpEOI);
+ WRITE_LE_UINT16(cp, kBmpEOI);
cp = (uint16 *) im;
im += 2;
}