diff options
author | Alyssa Milburn | 2012-02-22 23:18:50 +0100 |
---|---|---|
committer | Paul Gilbert | 2012-02-24 19:46:47 +1100 |
commit | 050902756e51e2195f7818bfd002050a73d73d8a (patch) | |
tree | 2e83bfce99eead60b04cd661c638fb8d1fd13264 /engines | |
parent | eba87458d399382e639d81e91d6acb3ce13f2252 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/cge/bitmap.cpp | 8 |
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; } |