diff options
author | uruk | 2013-07-18 23:56:55 +0200 |
---|---|---|
committer | uruk | 2013-07-18 23:56:55 +0200 |
commit | c6d2b45df9bd068b6d73c9e78fb04e44cf823dae (patch) | |
tree | 71861f7e0bb42c0edc079f487770dce6270c1cf0 /engines/avalanche | |
parent | c71d4dcc646ad0ba4720b22d0c5c6f7043a060d1 (diff) | |
download | scummvm-rg350-c6d2b45df9bd068b6d73c9e78fb04e44cf823dae.tar.gz scummvm-rg350-c6d2b45df9bd068b6d73c9e78fb04e44cf823dae.tar.bz2 scummvm-rg350-c6d2b45df9bd068b6d73c9e78fb04e44cf823dae.zip |
AVALANCHE: Implement Lucerna::showrw().
Diffstat (limited to 'engines/avalanche')
-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()"); } |