[Scummvm-git-logs] scummvm master -> 4d6344e736a351eaa16534863047f3790bf84fba
digitall
547637+digitall at users.noreply.github.com
Thu Jun 17 12:03:40 UTC 2021
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:
4d6344e736 TRECISION: Fix GCC Shadowing Warning
Commit: 4d6344e736a351eaa16534863047f3790bf84fba
https://github.com/scummvm/scummvm/commit/4d6344e736a351eaa16534863047f3790bf84fba
Author: D G Turner (digitall at scummvm.org)
Date: 2021-06-17T13:03:59+01:00
Commit Message:
TRECISION: Fix GCC Shadowing Warning
Changed paths:
engines/trecision/graphics.cpp
diff --git a/engines/trecision/graphics.cpp b/engines/trecision/graphics.cpp
index 90c1991610..a74b30edce 100644
--- a/engines/trecision/graphics.cpp
+++ b/engines/trecision/graphics.cpp
@@ -113,19 +113,19 @@ void GraphicsManager::drawObj(int index, bool mask, Common::Rect drawRect, Commo
// by using the background buffer
const uint16 *buf = index >= 0 ? _vm->_objPointers[index] : (uint16 *)_smkBackground.getPixels();
if (mask && index >= 0) {
- uint8 *mask = _vm->_maskPointers[index];
+ uint8 *maskPtr = _vm->_maskPointers[index];
for (uint16 y = drawRect.top; y < drawRect.bottom; ++y) {
uint16 sco = 0;
uint16 c = 0;
while (sco < drawRect.width()) {
if (c == 0) { // jump
- sco += *mask;
- ++mask;
+ sco += *maskPtr;
+ ++maskPtr;
c = 1;
} else { // copy
- const uint16 maskOffset = *mask;
+ const uint16 maskOffset = *maskPtr;
if (maskOffset != 0 && y >= drawRect.top + drawObjRect.top && y < drawRect.top + drawObjRect.bottom) {
if (sco >= drawObjRect.left && sco + maskOffset < drawObjRect.right)
@@ -140,8 +140,8 @@ void GraphicsManager::drawObj(int index, bool mask, Common::Rect drawRect, Commo
else if (sco < drawObjRect.left && sco + maskOffset >= drawObjRect.right)
memcpy(_screenBuffer.getBasePtr(drawObjRect.left + drawRect.left, y), buf + drawObjRect.left - sco, (drawObjRect.right - drawObjRect.left) * 2);
}
- sco += *mask;
- buf += *mask++;
+ sco += *maskPtr;
+ buf += *maskPtr++;
c = 0;
}
}
More information about the Scummvm-git-logs
mailing list