aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/chewy/graphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/chewy/graphics.cpp b/engines/chewy/graphics.cpp
index db3b094c75..6f72d04a21 100644
--- a/engines/chewy/graphics.cpp
+++ b/engines/chewy/graphics.cpp
@@ -93,10 +93,10 @@ void Graphics::loadFont(Common::String filename) {
void Graphics::drawTransparent(uint16 x, uint16 y, byte *data, uint16 width, uint16 height, byte transparentColor) {
::Graphics::Surface *screen = g_system->lockScreen();
- for (uint textX = 0; textX < width; textX++) {
- for (uint textY = 0; textY < height; textY++) {
- byte *src = data + (textY * width) + textX;
- byte *dst = (byte *)screen->getBasePtr(textX + x, textY + y);
+ for (uint curX = 0; curX < width; curX++) {
+ for (uint curY = 0; curY < height; curY++) {
+ byte *src = data + (curY * width) + curX;
+ byte *dst = (byte *)screen->getBasePtr(curX + x, curY + y);
if (*src != transparentColor)
*dst = *src;
}