diff options
author | Filippos Karapetis | 2019-10-29 00:13:57 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-10-29 02:58:36 +0200 |
commit | b2d1cfa12669b4273d8be8fd4fd99e6b02db10ec (patch) | |
tree | f47fb99fb510c860b76f1bc1be2168928c30f25f /engines/startrek/sprite.cpp | |
parent | f93bbfd7cae334d242760f6d3681b4ae318fa981 (diff) | |
download | scummvm-rg350-b2d1cfa12669b4273d8be8fd4fd99e6b02db10ec.tar.gz scummvm-rg350-b2d1cfa12669b4273d8be8fd4fd99e6b02db10ec.tar.bz2 scummvm-rg350-b2d1cfa12669b4273d8be8fd4fd99e6b02db10ec.zip |
STARTREK: Refactored mouse cursor and bitmap handling
- Reduced usage of SharedPtr
- Simplified the mouse cursor code (normal, locked, stack handling)
- Simplified the background handling code
- Initialize the mouse cursor after the graphics are initialized
Diffstat (limited to 'engines/startrek/sprite.cpp')
-rw-r--r-- | engines/startrek/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/startrek/sprite.cpp b/engines/startrek/sprite.cpp index 63e24c2ccf..8b042f2525 100644 --- a/engines/startrek/sprite.cpp +++ b/engines/startrek/sprite.cpp @@ -32,8 +32,8 @@ Sprite::Sprite() : drawRect(), rectangle2(), drawX(0), drawY(0) {} -void Sprite::setBitmap(SharedPtr<Bitmap> b) { - bitmap = b; +void Sprite::setBitmap(Bitmap *b) { + bitmap = SharedPtr<Bitmap>(b); bitmapChanged = true; } |