[Scummvm-git-logs] scummvm master -> 5228ff83b761b1f8c28d8254a5dc47bd7b72cf12
yuv422
yuv422 at users.noreply.github.com
Sun May 17 13:01:38 UTC 2020
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:
5228ff83b7 DRAGONS: Fixed bug when removing image overlay
Commit: 5228ff83b761b1f8c28d8254a5dc47bd7b72cf12
https://github.com/scummvm/scummvm/commit/5228ff83b761b1f8c28d8254a5dc47bd7b72cf12
Author: Eric Fry (yuv422 at users.noreply.github.com)
Date: 2020-05-17T23:00:15+10:00
Commit Message:
DRAGONS: Fixed bug when removing image overlay
Changed paths:
engines/dragons/background.cpp
diff --git a/engines/dragons/background.cpp b/engines/dragons/background.cpp
index 84a6c432b7..19926035ee 100644
--- a/engines/dragons/background.cpp
+++ b/engines/dragons/background.cpp
@@ -257,8 +257,8 @@ void Background::overlayImage(uint16 layerNum, byte *data, int16 x, int16 y, int
void Background::restoreTiles(uint16 layerNum, int16 x1, int16 y1, int16 w, int16 h) {
int16 tmw = x1 + w;
int16 tmh = y1 + h;
- for (int y = 0; y < tmh; y++) {
- for (int x = 0; x < tmw; x++) {
+ for (int y = y1; y < tmh; y++) {
+ for (int x = x1; x < tmw; x++) {
uint16 idx = READ_LE_UINT16(&_tileMap[layerNum].map[(y * _tileMap[layerNum].w + x) * 2]) + _tileMap[layerNum].tileIndexOffset;
//debug("tileIdx: %d", idx);
drawTileToSurface(_layerSurface[layerNum], _palette, _tileDataOffset + idx * 0x100, x * TILE_WIDTH, y * TILE_HEIGHT);
More information about the Scummvm-git-logs
mailing list