diff options
| author | Cameron Cawley | 2019-08-09 20:45:27 +0100 |
|---|---|---|
| committer | Filippos Karapetis | 2019-08-09 23:58:32 +0300 |
| commit | fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab (patch) | |
| tree | 96dff48a310a3873fb9fc6cb48454997a26aba17 /engines/cryomni3d | |
| parent | 4667aae4c407a3a54f44e07227897cf077f82fe2 (diff) | |
| download | scummvm-rg350-fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab.tar.gz scummvm-rg350-fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab.tar.bz2 scummvm-rg350-fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab.zip | |
GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor
Diffstat (limited to 'engines/cryomni3d')
| -rw-r--r-- | engines/cryomni3d/cryomni3d.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/cryomni3d/cryomni3d.cpp b/engines/cryomni3d/cryomni3d.cpp index 452d6b7794..95da49a7e2 100644 --- a/engines/cryomni3d/cryomni3d.cpp +++ b/engines/cryomni3d/cryomni3d.cpp @@ -252,14 +252,12 @@ bool CryOmni3DEngine::displayHLZ(const Common::String &filename, uint32 timeout) } void CryOmni3DEngine::setCursor(const Graphics::Cursor &cursor) const { - CursorMan.replaceCursor(cursor.getSurface(), cursor.getWidth(), cursor.getHeight(), - cursor.getHotspotX(), cursor.getHotspotY(), cursor.getKeyColor()); + CursorMan.replaceCursor(&cursor); } void CryOmni3DEngine::setCursor(uint cursorId) const { const Graphics::Cursor &cursor = _sprites.getCursor(cursorId); - CursorMan.replaceCursor(cursor.getSurface(), cursor.getWidth(), cursor.getHeight(), - cursor.getHotspotX(), cursor.getHotspotY(), cursor.getKeyColor()); + CursorMan.replaceCursor(&cursor); } bool CryOmni3DEngine::pollEvents() { |
