diff options
author | uruk | 2013-07-05 18:28:43 +0200 |
---|---|---|
committer | uruk | 2013-07-05 18:28:43 +0200 |
commit | 14dfc468ea8cf80048d23c531bdb6ce0c945cf46 (patch) | |
tree | 06d214864b8227f315f7c73465ca44bcd77ca7e7 | |
parent | fcaf659c7ab676fa9c6ccfe6a6b3b8a6e8f1eb9f (diff) | |
download | scummvm-rg350-14dfc468ea8cf80048d23c531bdb6ce0c945cf46.tar.gz scummvm-rg350-14dfc468ea8cf80048d23c531bdb6ce0c945cf46.tar.bz2 scummvm-rg350-14dfc468ea8cf80048d23c531bdb6ce0c945cf46.zip |
AVALANCHE: Lucerna: implement toolbar().
-rw-r--r-- | engines/avalanche/lucerna2.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp index da2aaae027..3dc69d5968 100644 --- a/engines/avalanche/lucerna2.cpp +++ b/engines/avalanche/lucerna2.cpp @@ -802,7 +802,38 @@ void Lucerna::load_digits() { /* Load the scoring digits & rwlites */ } void Lucerna::toolbar() { + uint16 s; + byte *p; + + if (!f.open("useful.avd")) { + warning("AVALANCHE: Lucerna: File not found: useful.avd"); + return; + } + + s = f.size() - 40; + p = new byte[s]; + f.seek(40); + for (uint16 i = 0; i < s; i++) + p[i] = f.readByte(); + f.close(); + /* off;*/ + + //setcolor(15); /* (And sent for chrysanthemums...) Yellow and white. */ + //setfillstyle(1, 6); + //for (byte fv = 0; fv <= 1; fv ++) { + // setactivepage(fv); + // putimage(5, 169, p, 0); + // if (demo) { + // bar(264, 177, 307, 190); + // outtextxy(268, 188, "Demo!"); /* well... actually only white now. */ + // } + //} warning("STUB: Lucerna::toolbar()"); + + /* on;*/ + delete[] p; + _vm->_gyro.oldrw = 177; + showrw(); } void Lucerna::showscore() { |