[Scummvm-cvs-logs] scummvm master -> 5563b25faf27717de31c358fe26ee98557f508bb

fuzzie fuzzie at fuzzie.org
Mon Apr 18 16:15:27 CEST 2011


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:
5563b25faf MOHAWK: Speed up drawRLE8 a bit.


Commit: 5563b25faf27717de31c358fe26ee98557f508bb
    https://github.com/scummvm/scummvm/commit/5563b25faf27717de31c358fe26ee98557f508bb
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-04-18T07:12:57-07:00

Commit Message:
MOHAWK: Speed up drawRLE8 a bit.

Changed paths:
    engines/mohawk/bitmap.cpp



diff --git a/engines/mohawk/bitmap.cpp b/engines/mohawk/bitmap.cpp
index c8111fa..a6ec2cf 100644
--- a/engines/mohawk/bitmap.cpp
+++ b/engines/mohawk/bitmap.cpp
@@ -608,13 +608,12 @@ void MohawkBitmap::drawRLE8(Graphics::Surface *surface, bool isLE) {
 
 			if (code & 0x80) {
 				byte val = _data->readByte();
-				for (uint16 j = 0; j < runLen; j++)
-					*dst++ = val;
+				memset(dst, val, runLen);
 			} else {
-				for (uint16 j = 0; j < runLen; j++)
-					*dst++ = _data->readByte();
+				_data->read(dst, runLen);
 			}
 
+			dst += runLen;
 			remaining -= runLen;
 		}
 






More information about the Scummvm-git-logs mailing list