diff options
Diffstat (limited to 'engines/dm/gfx.cpp')
-rw-r--r-- | engines/dm/gfx.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index 790c055784..ea05f44b76 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -1500,3 +1500,9 @@ void DisplayMan::blitToBitmapShrinkWithPalChange(byte *srcBitmap, int16 srcWidth byte* DisplayMan::getBitmap(uint16 index) { return _bitmaps[index]; } + +void DisplayMan::clearScreenBox(Color color, Box &box) { + 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); +} |