diff options
author | uruk | 2013-07-27 15:05:06 +0200 |
---|---|---|
committer | uruk | 2013-07-27 15:05:06 +0200 |
commit | de97da2fe64fb713d547441a7510c71828376bb1 (patch) | |
tree | df6932501756c315cf0f6680d8755de2d5934590 /engines | |
parent | c9fbfb6d32af41b3b55df553ecd7aa203dff5eed (diff) | |
download | scummvm-rg350-de97da2fe64fb713d547441a7510c71828376bb1.tar.gz scummvm-rg350-de97da2fe64fb713d547441a7510c71828376bb1.tar.bz2 scummvm-rg350-de97da2fe64fb713d547441a7510c71828376bb1.zip |
AVALANCHE: Implement Basher::plottext().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/basher2.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/avalanche/basher2.cpp b/engines/avalanche/basher2.cpp index 0ce98e71fe..5f873225f2 100644 --- a/engines/avalanche/basher2.cpp +++ b/engines/avalanche/basher2.cpp @@ -79,7 +79,25 @@ void Basher::init() { } void Basher::plottext() { - warning("STUB: Basher::plottext()"); + if (_vm->_gyro->mouse_near_text()) + _vm->_gyro->super_off(); + + cursor_off(); + + _vm->_graphics->drawBar(24, 161, 640, 169, black); + + for (byte i = 0; i < _vm->_gyro->current.size(); i++) + for (byte j = 0; j < 8; j++) { + byte pixel = _vm->_gyro->little[_vm->_gyro->current[i]][j]; + for (byte bit = 0; bit < 8; bit++) { + byte pixelBit = (pixel >> bit) & 1; + if (pixelBit != 0) + *_vm->_graphics->getPixel(/*x * 8 + */ 24 + i * 8 + 7 - bit, 161 + j) = white; + } + } + + cursor_on(); + _vm->_gyro->super_on(); } void Basher::wipetext() { |