diff options
| -rw-r--r-- | engines/dm/gfx.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index f5d58838fa..f1a93a1c5f 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -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,  | 
