[Scummvm-git-logs] scummvm master -> 388f55b85791a5a5c9666c7429e27532dfd41d3c

dreammaster dreammaster at scummvm.org
Mon Apr 2 04:21:41 CEST 2018


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:
388f55b857 XEEN: Have sprite enlargement do double width as well as height


Commit: 388f55b85791a5a5c9666c7429e27532dfd41d3c
    https://github.com/scummvm/scummvm/commit/388f55b85791a5a5c9666c7429e27532dfd41d3c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-04-01T22:21:40-04:00

Commit Message:
XEEN: Have sprite enlargement do double width as well as height

Changed paths:
    engines/xeen/sprites.cpp


diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp
index f05ca1b..adeb567 100644
--- a/engines/xeen/sprites.cpp
+++ b/engines/xeen/sprites.cpp
@@ -290,12 +290,19 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi
 						drawBounds.left = MIN(drawBounds.left, xp);
 						drawBounds.right = MAX((int)drawBounds.right, xp + 1);
 						*destP = (byte)*lineP;
-						if (enlarge)
+						if (enlarge) {
 							*(destP + SCREEN_WIDTH) = (byte)*lineP;
+							*(destP + 1) = (byte)*lineP;
+							*(destP + 1 + SCREEN_WIDTH) = (byte)*lineP;
+						}
 					}
 
-					++destP;
 					++xp;
+					++destP;
+					if (enlarge) {
+						++destP;
+						++xp;
+					}
 				}
 			}
 





More information about the Scummvm-git-logs mailing list