diff options
-rw-r--r-- | engines/avalanche/lucerna2.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp index f5d833b800..6f65927d36 100644 --- a/engines/avalanche/lucerna2.cpp +++ b/engines/avalanche/lucerna2.cpp @@ -1058,7 +1058,28 @@ void Lucerna::dawn() { -void Lucerna::showrw() { +void Lucerna::showrw() { // It's data is loaded in load_digits(). + if (_vm->_gyro.oldrw == _vm->_gyro.dna.rw) + return; + _vm->_gyro.oldrw = _vm->_gyro.dna.rw; + _vm->_gyro.off(); + + /* for (byte page_ = 0; page_ <= 1; page_ ++) { + setactivepage(page_); + putimage(0, 161, rwlite[with.rw], 0); + }*/ + + Graphics::Surface *rwlite = _vm->_graph.readImage(_vm->_gyro.rwlite[_vm->_gyro.dna.rw]); + + _vm->_graph.copySurface(*rwlite, 0, 161); + + rwlite->free(); + + delete rwlite; + + _vm->_gyro.on(); + //setactivepage(1 - cp); + warning("STUB: Lucerna::showrw()"); } |