aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/graphics.cpp')
-rw-r--r--engines/avalanche/graphics.cpp30
1 files changed, 25 insertions, 5 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 603e294fd8..11b149babd 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -479,15 +479,15 @@ void GraphicManager::drawDebugLines() {
}
void GraphicManager::drawRectangle(Common::Rect rect, Color color) {
- _surface.frameRect(Common::Rect(rect.left, rect.top, rect.right + 1, rect.bottom + 1), color);
+ _surface.frameRect(rect, color);
}
void GraphicManager::drawFilledRectangle(Common::Rect rect, Color color) {
- _surface.fillRect(Common::Rect(rect.left, rect.top, rect.right + 1, rect.bottom + 1), color);
+ _surface.fillRect(rect, color);
}
void GraphicManager::blackOutScreen() {
- _vm->_graphics->drawFilledRectangle(Common::Rect(0, 0, 639, 199), kColorBlack);
+ _vm->_graphics->drawFilledRectangle(Common::Rect(0, 0, 640, 200), kColorBlack);
}
void GraphicManager::nimLoad() {
@@ -691,7 +691,7 @@ void GraphicManager::helpDrawHighlight(byte which, Color color) {
return;
which &= 31;
- drawRectangle(Common::Rect(466, 38 + which * 27, 555, 62 + which * 27), color);
+ drawRectangle(Common::Rect(466, 38 + which * 27, 556, 63 + which * 27), color);
}
/**
@@ -992,7 +992,27 @@ void GraphicManager::drawCursor(byte pos) {
}
void GraphicManager::drawReadyLight(Color color) {
- _surface.fillRect(Common::Rect(419, 195, 438, 197), color);
+ _surface.fillRect(Common::Rect(419, 195, 439, 198), color);
+ _scrolls.fillRect(Common::Rect(419, 195, 439, 198), color);
+}
+
+void GraphicManager::drawSoundLight(bool state) {
+ Color color = kColorBlack;
+ if (state)
+ color = kColorCyan;
+ else
+ color = kColorBlack;
+ _surface.fillRect(Common::Rect(419, 175, 439, 178), color);
+}
+
+void GraphicManager::drawErrorLight(bool state) {
+ Color color = kColorBlack;
+ if (state)
+ color = kColorRed;
+ else
+ color = kColorBlack;
+ _surface.fillRect(Common::Rect(419, 184, 439, 187), color);
+ refreshScreen();
}
/**