mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
LAB: Rename overlayRect() to checkerboardEffect()
This commit is contained in:
parent
5327b6f545
commit
52c7fcbfe5
@ -504,7 +504,7 @@ byte *DisplayMan::getCurrentDrawingBuffer() {
|
||||
return _displayBuffer;
|
||||
}
|
||||
|
||||
void DisplayMan::overlayRect(uint16 penColor, uint16 x1, uint16 y1, uint16 x2, uint16 y2) {
|
||||
void DisplayMan::checkerboardEffect(uint16 penColor, uint16 x1, uint16 y1, uint16 x2, uint16 y2) {
|
||||
int w = x2 - x1 + 1;
|
||||
int h = y2 - y1 + 1;
|
||||
|
||||
@ -794,7 +794,7 @@ void DisplayMan::doTransWipe(CloseDataPtr *closePtrList, const Common::String fi
|
||||
}
|
||||
|
||||
if (j == 9)
|
||||
overlayRect(0, 0, curY, _screenWidth - 1, curY + 1);
|
||||
checkerboardEffect(0, 0, curY, _screenWidth - 1, curY + 1);
|
||||
else
|
||||
rectFill(0, curY, _screenWidth - 1, curY + 1);
|
||||
curY += 4;
|
||||
@ -842,7 +842,7 @@ void DisplayMan::doTransWipe(CloseDataPtr *closePtrList, const Common::String fi
|
||||
|
||||
if (j == 0) {
|
||||
imSource.blitBitmap(0, curY, &imDest, 0, curY, _screenWidth, 2, false);
|
||||
overlayRect(0, 0, curY, _screenWidth - 1, curY + 1);
|
||||
checkerboardEffect(0, 0, curY, _screenWidth - 1, curY + 1);
|
||||
} else {
|
||||
uint16 bitmapHeight = (curY == lastY) ? 1 : 2;
|
||||
imSource.blitBitmap(0, curY, &imDest, 0, curY, _screenWidth, bitmapHeight, false);
|
||||
|
@ -234,7 +234,7 @@ public:
|
||||
/**
|
||||
* Overlays a region on the screen using the desired pen color.
|
||||
*/
|
||||
void overlayRect(uint16 penColor, uint16 x1, uint16 y1, uint16 x2, uint16 y2);
|
||||
void checkerboardEffect(uint16 penColor, uint16 x1, uint16 y1, uint16 x2, uint16 y2);
|
||||
|
||||
/**
|
||||
* Returns the base address of the current VGA display.
|
||||
|
@ -78,7 +78,7 @@ void EventManager::drawButtonList(ButtonList *buttonList) {
|
||||
|
||||
void EventManager::toggleButton(Button *button, uint16 disabledPenColor, bool enable) {
|
||||
if (!enable)
|
||||
_vm->_graphics->overlayRect(disabledPenColor, button->_x, button->_y, button->_x + button->_image->_width - 1, button->_y + button->_image->_height - 1);
|
||||
_vm->_graphics->checkerboardEffect(disabledPenColor, button->_x, button->_y, button->_x + button->_image->_width - 1, button->_y + button->_image->_height - 1);
|
||||
else
|
||||
button->_image->drawImage(button->_x, button->_y);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user