diff options
author | Max Horn | 2004-10-30 22:34:08 +0000 |
---|---|---|
committer | Max Horn | 2004-10-30 22:34:08 +0000 |
commit | 4126001b861aa6abd1633ae42b7b259ad646df9c (patch) | |
tree | ca7c341d4a63a19cc7b59c40d81c6347df423ecc /saga/actionmap.cpp | |
parent | 06c46fe423616f516648c67279f5c204398a2bd2 (diff) | |
download | scummvm-rg350-4126001b861aa6abd1633ae42b7b259ad646df9c.tar.gz scummvm-rg350-4126001b861aa6abd1633ae42b7b259ad646df9c.tar.bz2 scummvm-rg350-4126001b861aa6abd1633ae42b7b259ad646df9c.zip |
Turn some methods into functions (potentially gives better code, and we may want to move some of those into the graphics/ module one day)
svn-id: r15703
Diffstat (limited to 'saga/actionmap.cpp')
-rw-r--r-- | saga/actionmap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/saga/actionmap.cpp b/saga/actionmap.cpp index c424743728..c5b4e945eb 100644 --- a/saga/actionmap.cpp +++ b/saga/actionmap.cpp @@ -147,7 +147,7 @@ int ActionMap::hitTest(const Point& imouse) { } } else if (n_points > 2) { // Hit-test a polygon - if (_vm->_gfx->hitTestPoly(points, n_points, imouse)) { + if (hitTestPoly(points, n_points, imouse)) { return i; } } @@ -170,10 +170,10 @@ int ActionMap::draw(SURFACE *ds, int color) { clickarea = &exmap_entry->clickareas[k]; if (clickarea->n_points == 2) { // 2 points represent a box - _vm->_gfx->drawFrame(ds, &clickarea->points[0], &clickarea->points[1], color); + drawFrame(ds, &clickarea->points[0], &clickarea->points[1], color); } else if (clickarea->n_points > 2) { // Otherwise draw a polyline - _vm->_gfx->drawPolyLine(ds, clickarea->points, clickarea->n_points, color); + drawPolyLine(ds, clickarea->points, clickarea->n_points, color); } } } |