mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 04:43:26 +00:00
DM: Add D24_FillScreenBox
This commit is contained in:
parent
472778a06e
commit
0597fdc658
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user