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/objectmap.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/objectmap.cpp')
-rw-r--r-- | saga/objectmap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/saga/objectmap.cpp b/saga/objectmap.cpp index c959256160..32d377d45f 100644 --- a/saga/objectmap.cpp +++ b/saga/objectmap.cpp @@ -285,10 +285,10 @@ int ObjectMap::draw(SURFACE *ds, const Point& imousePt, int color, int color2) { clickarea = &object_map->clickareas[k]; if (clickarea->n_points == 2) { // 2 points represent a box - _vm->_gfx->drawFrame(ds, &clickarea->points[0], &clickarea->points[1], draw_color); + drawFrame(ds, &clickarea->points[0], &clickarea->points[1], draw_color); } else if (clickarea->n_points > 2) { // Otherwise draw a polyline - _vm->_gfx->drawPolyLine(ds, clickarea->points, clickarea->n_points, draw_color); + drawPolyLine(ds, clickarea->points, clickarea->n_points, draw_color); } } } @@ -332,7 +332,7 @@ int ObjectMap::hitTest(const Point& imousePt) { } } else if (n_points > 2) { // Hit-test a polygon - if (_vm->_gfx->hitTestPoly(points, n_points, imouse)) { + if (hitTestPoly(points, n_points, imouse)) { return object_map->objectNum; } } |