DM: Add D24_FillScreenBox

This commit is contained in:
Bendegúz Nagy 2016-06-19 11:47:22 +02:00
parent 472778a06e
commit 0597fdc658
2 changed files with 7 additions and 0 deletions

View File

@ -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);
}

View File

@ -286,6 +286,7 @@ public:
void clearBitmap(byte *bitmap, uint16 width, uint16 height, Color color);
void clearScreen(Color color);
void clearScreenBox(Color color, Box &box); // @ D24_FillScreenBox
void drawDungeon(direction dir, int16 posX, int16 posY); // @ F0128_DUNGEONVIEW_Draw_CPSF
void updateScreen();
byte* getBitmap(uint16 index);