[Scummvm-cvs-logs] scummvm master -> 050902756e51e2195f7818bfd002050a73d73d8a

dreammaster dreammaster at scummvm.org
Fri Feb 24 10:00:25 CET 2012


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:
050902756e CGE: Use WRITE_LE_UINT16 for unaligned writes.


Commit: 050902756e51e2195f7818bfd002050a73d73d8a
    https://github.com/scummvm/scummvm/commit/050902756e51e2195f7818bfd002050a73d73d8a
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2012-02-24T00:46:47-08:00

Commit Message:
CGE: Use WRITE_LE_UINT16 for unaligned writes.

Changed paths:
    engines/cge/bitmap.cpp



diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp
index 4b50347..37f4eb0 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;
 		}






More information about the Scummvm-git-logs mailing list