aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorFilippos Karapetis2015-12-23 22:09:33 +0200
committerWillem Jan Palenstijn2015-12-23 21:43:17 +0100
commit52c7fcbfe5e65d47f0aa0b6169f95b529d6d9dc2 (patch)
tree975795806e3b12de9f730dc88132de434cf50419 /engines/lab
parent5327b6f545de1031909f09cb459ccc24c5467886 (diff)
downloadscummvm-rg350-52c7fcbfe5e65d47f0aa0b6169f95b529d6d9dc2.tar.gz
scummvm-rg350-52c7fcbfe5e65d47f0aa0b6169f95b529d6d9dc2.tar.bz2
scummvm-rg350-52c7fcbfe5e65d47f0aa0b6169f95b529d6d9dc2.zip
LAB: Rename overlayRect() to checkerboardEffect()
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/dispman.cpp6
-rw-r--r--engines/lab/dispman.h2
-rw-r--r--engines/lab/interface.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp
index 4e284e5571..8def025629 100644
--- a/engines/lab/dispman.cpp
+++ b/engines/lab/dispman.cpp
@@ -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);
diff --git a/engines/lab/dispman.h b/engines/lab/dispman.h
index cbb80ac4cc..b77a178bf8 100644
--- a/engines/lab/dispman.h
+++ b/engines/lab/dispman.h
@@ -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.
diff --git a/engines/lab/interface.cpp b/engines/lab/interface.cpp
index bdf30c6c49..0d03d21fd1 100644
--- a/engines/lab/interface.cpp
+++ b/engines/lab/interface.cpp
@@ -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);