aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-07-12 10:43:13 +0200
committeruruk2013-07-12 10:43:13 +0200
commita096ee19576ce9b518f28c3da27463244d51893e (patch)
tree1c469240163c93b284be0b3783c0c3471a151156 /engines
parent1bb9d2b9965348e6526e9b9d5100ff443fdef3cd (diff)
downloadscummvm-rg350-a096ee19576ce9b518f28c3da27463244d51893e.tar.gz
scummvm-rg350-a096ee19576ce9b518f28c3da27463244d51893e.tar.bz2
scummvm-rg350-a096ee19576ce9b518f28c3da27463244d51893e.zip
AVALANCHE: Partially implement Scrolls::state. (Bother with the patterns later.)
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/scrolls2.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp
index ca0ac3071e..972091d018 100644
--- a/engines/avalanche/scrolls2.cpp
+++ b/engines/avalanche/scrolls2.cpp
@@ -57,7 +57,46 @@ void Scrolls::init() {
}
void Scrolls::state(byte x) { /* Sets "Ready" light to whatever */
+ byte page_;
+
+ if (_vm->_gyro.ledstatus == x)
+ return; /* Already like that! */
+
+ byte color;
+ switch (x) {
+ case 0:
+ color = black;
+ break; /* Off */
+ case 1:
+ case 2:
+ case 3:
+ color = green;
+ break; /* Hit a key */
+ }
+
+ //switch (x) {
+ //case 0:
+ // setfillstyle(1, black);
+ // break; /* Off */
+ //case 1:
+ // setfillstyle(9, green);
+ // break; /* Half-on (menus) */
+ //case 2:
+ // setfillstyle(1, green);
+ // break; /* On (kbd) */
+ //case 3:
+ // setfillstyle(6, green);
+ // break; /* Hit a key */
+ //}
warning("STUB: Scrolls::state()");
+
+ _vm->_gyro.super_off();
+
+ _vm->_graph.drawBar(419, 195, 438, 197, color);
+ _vm->_graph.refreshScreen();
+
+ _vm->_gyro.super_on();
+ _vm->_gyro.ledstatus = x;
}
void Scrolls::easteregg() {