diff options
Diffstat (limited to 'engines/pegasus/graphics.cpp')
-rw-r--r-- | engines/pegasus/graphics.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/pegasus/graphics.cpp b/engines/pegasus/graphics.cpp index 05217fabcd..6cce9ddbd8 100644 --- a/engines/pegasus/graphics.cpp +++ b/engines/pegasus/graphics.cpp @@ -189,5 +189,17 @@ void GraphicsManager::clearScreen() { g_system->unlockScreen(); _modifiedScreen = true; } + +DisplayElement *GraphicsManager::findDisplayElement(const tDisplayElementID id) { + DisplayElement *runner = _firstDisplayElement; + + while (runner) { + if (runner->getObjectID() == id) + return runner; + runner = runner->_nextElement; + } + + return 0; +} } // End of namespace Pegasus |