diff options
author | Nicola Mettifogo | 2007-11-21 20:04:14 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-11-21 20:04:14 +0000 |
commit | 6af9577e84341630c00a29faa23d65a0d671aa81 (patch) | |
tree | 76d620fbdb2ae361f8fd3e23c1f6efdd0e589fd4 /engines/parallaction/exec_ns.cpp | |
parent | 634595e0738cfb55d922ab91cdea7460156306a9 (diff) | |
download | scummvm-rg350-6af9577e84341630c00a29faa23d65a0d671aa81.tar.gz scummvm-rg350-6af9577e84341630c00a29faa23d65a0d671aa81.tar.bz2 scummvm-rg350-6af9577e84341630c00a29faa23d65a0d671aa81.zip |
* moved label drawing into Gfx, to be drawn directly in the framebuffer
* changed low level blitting function to accept Graphics::Surface to ease development
* temporarily disabled labels/subtitles in BRA
svn-id: r29593
Diffstat (limited to 'engines/parallaction/exec_ns.cpp')
-rw-r--r-- | engines/parallaction/exec_ns.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/engines/parallaction/exec_ns.cpp b/engines/parallaction/exec_ns.cpp index 071810ad16..52e132a56e 100644 --- a/engines/parallaction/exec_ns.cpp +++ b/engines/parallaction/exec_ns.cpp @@ -844,67 +844,4 @@ void Parallaction_ns::initOpcodes() { } - -void Parallaction_ns::drawLabel() { - - if (!_label) - return; - - if (_deletingLabel) - return; - - debugC(9, kDebugExec, "jobDisplayLabel (%p)", (void *) _label); - - _gfx->drawLabel(*_label); - - return; -} - -void Parallaction_ns::eraseLabel() { - - static uint16 count = 0; - - if (!_label) - return; - - debugC(9, kDebugExec, "jobEraseLabel (%p)", (void *) _label); - - int16 _si, _di; - - if (_activeItem._id != 0) { - _si = _mousePos.x + 16 - _label->_cnv.w/2; - _di = _mousePos.y + 34; - } else { - _si = _mousePos.x + 8 - _label->_cnv.w/2; - _di = _mousePos.y + 21; - } - - if (_si < 0) _si = 0; - if (_di > 190) _di = 190; - - if (_label->_cnv.w + _si > _screenWidth) - _si = _screenWidth - _label->_cnv.w; - - Common::Rect r; - _label->getRect(r, true); - _gfx->restoreBackground(r); - - _label->_old = _label->_pos; - _label->_pos.x = _si; - _label->_pos.y = _di; - - if (_deletingLabel) { - count++; - if (count == 2) { - count = 0; - _engineFlags &= ~kEngineBlockInput; - _deletingLabel = false; - _label = 0; - } - } - - return; -} - - } // namespace Parallaction |