diff options
author | Strangerke | 2013-05-12 18:44:52 +0200 |
---|---|---|
committer | Strangerke | 2013-05-12 18:44:52 +0200 |
commit | 1f509f13b238789499a869e5a0946b26f53c630b (patch) | |
tree | 36527ab1c4e711d5deb2130e8430ce294ba295ed /engines/hopkins/graphics.cpp | |
parent | 38b67791360441a0066d0ea394bf054854968e44 (diff) | |
download | scummvm-rg350-1f509f13b238789499a869e5a0946b26f53c630b.tar.gz scummvm-rg350-1f509f13b238789499a869e5a0946b26f53c630b.tar.bz2 scummvm-rg350-1f509f13b238789499a869e5a0946b26f53c630b.zip |
HOPKINS: Use different colors for displaying hotspot zones
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r-- | engines/hopkins/graphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index aa71b2c4c0..636bdb40ce 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -1176,7 +1176,7 @@ void GraphicsManager::displayZones() { _vm->_objectsMan->_bob[bobId]._oldX + _vm->_objectsMan->_bob[bobId]._oldWidth, _vm->_objectsMan->_bob[bobId]._oldY + _vm->_objectsMan->_bob[bobId]._oldHeight); - displayDebugRect(screenSurface, r); + displayDebugRect(screenSurface, r, 0xff0000); } } @@ -1185,14 +1185,14 @@ void GraphicsManager::displayZones() { Common::Rect r(_vm->_linesMan->_squareZone[squareZoneId]._left, _vm->_linesMan->_squareZone[squareZoneId]._top, _vm->_linesMan->_squareZone[squareZoneId]._right, _vm->_linesMan->_squareZone[squareZoneId]._bottom); - displayDebugRect(screenSurface, r); + displayDebugRect(screenSurface, r, 0x00ff00); } } g_system->unlockScreen(); } -void GraphicsManager::displayDebugRect(Graphics::Surface *surface, const Common::Rect &srcRect) { +void GraphicsManager::displayDebugRect(Graphics::Surface *surface, const Common::Rect &srcRect, uint32 color) { Common::Rect r = srcRect; // Move for scrolling offset and adjust to crop on-screen @@ -1204,7 +1204,7 @@ void GraphicsManager::displayDebugRect(Graphics::Surface *surface, const Common: // If there's an on-screen portion, display it if (r.isValidRect()) - surface->frameRect(r, 0xffffff); + surface->frameRect(r, color); } /** |