Skip to content

Commit

Permalink
WAGE: Fix calculation for bitmap bboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Mar 9, 2016
1 parent ecc6a2c commit 1f4af34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/wage/design.cpp
Expand Up @@ -466,7 +466,7 @@ void Design::drawBitmap(Graphics::Surface *surface, Common::SeekableReadStream &

for (int c = 0; c < 8; c++) {
if (_boundsCalculationMode) {
adjustBounds(x, y);
adjustBounds(x1 + x, y1 + y);
} else if (x1 + x >= 0 && x1 + x < surface->w && y1 + y >= 0 && y1 + y < surface->h)
*((byte *)tmp.getBasePtr(x, y)) = (color & (1 << (7 - c % 8))) ? kColorBlack : kColorWhite;
x++;
Expand Down

0 comments on commit 1f4af34

Please sign in to comment.