Skip to content

Commit

Permalink
DM: Fix unused viewport in DisplayMan::clearScreenBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent 9c544a4 commit d893075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/dm/gfx.cpp
Expand Up @@ -1578,8 +1578,8 @@ byte* DisplayMan::getBitmap(uint16 index) {

void DisplayMan::clearScreenBox(Color color, Box &box, Viewport &viewport) {
uint16 width = box._x2 - box._x1;
for (int y = box._y1; y < box._y2; ++y)
memset(_vgaBuffer + y * _screenWidth + box._x1, color, sizeof(byte) * width);
for (int y = box._y1 + viewport._posY; y < box._y2 + viewport._posY; ++y)
memset(_vgaBuffer + y * _screenWidth + box._x1 + viewport._posX, color, sizeof(byte) * width);
}

void DisplayMan::blitToScreen(byte *srcBitmap, uint16 srcWidth, uint16 srcX, uint16 srcY,
Expand Down

0 comments on commit d893075

Please sign in to comment.