aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-09-02 15:17:41 +0000
committerNicola Mettifogo2007-09-02 15:17:41 +0000
commit60a6d5aa539f4182a1b39616626d0f74615f791e (patch)
treebeef013a911b0181017285af35be764defb7f114 /engines/parallaction/graphics.cpp
parent957e421bfa98ca634f83f0744e22c5ef5001e1d2 (diff)
downloadscummvm-rg350-60a6d5aa539f4182a1b39616626d0f74615f791e.tar.gz
scummvm-rg350-60a6d5aa539f4182a1b39616626d0f74615f791e.tar.bz2
scummvm-rg350-60a6d5aa539f4182a1b39616626d0f74615f791e.zip
Jobs are now members of the engine and are handled with a table, instead of being external functions.
svn-id: r28824
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r--engines/parallaction/graphics.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index 1cf5216963..2508633c87 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -410,49 +410,6 @@ void Gfx::blit(const Common::Rect& r, uint16 z, byte *data, Gfx::Buffers buffer)
}
-void jobDisplayLabel(void *parm, Job *j) {
-
- Label *label = (Label*)parm;
- debugC(9, kDebugJobs, "jobDisplayLabel (%p)", (const void*) label);
-
- if (label->_cnv.w == 0)
- return;
- _vm->_gfx->flatBlitCnv(&label->_cnv, _vm->_gfx->_labelPosition[0].x, _vm->_gfx->_labelPosition[0].y, Gfx::kBitBack);
-
- return;
-}
-
-void jobEraseLabel(void *parm, Job *j) {
- Label *label = (Label*)parm;
-
- debugC(9, kDebugJobs, "jobEraseLabel (%p)", (const void*) label);
-
- int16 _si, _di;
-
- if (_vm->_activeItem._id != 0) {
- _si = _vm->_mousePos.x + 16 - label->_cnv.w/2;
- _di = _vm->_mousePos.y + 34;
- } else {
- _si = _vm->_mousePos.x + 8 - label->_cnv.w/2;
- _di = _vm->_mousePos.y + 21;
- }
-
- if (_si < 0) _si = 0;
- if (_di > 190) _di = 190;
-
- if (label->_cnv.w + _si > _vm->_screenWidth)
- _si = _vm->_screenWidth - label->_cnv.w;
-
- Common::Rect r(label->_cnv.w, label->_cnv.h);
- r.moveTo(_vm->_gfx->_labelPosition[1]);
- _vm->_gfx->restoreBackground(r);
-
- _vm->_gfx->_labelPosition[1] = _vm->_gfx->_labelPosition[0];
- _vm->_gfx->_labelPosition[0].x = _si;
- _vm->_gfx->_labelPosition[0].y = _di;
-
- return;
-}