aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/sdl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-16 23:50:46 +0000
committerAlejandro Marzini2010-07-16 23:50:46 +0000
commit0e748c5a9784d19d10c23bb5c72f032a2331567b (patch)
tree848124c28e6147c09f874eec348710cade1c1bfa /backends/graphics/sdl
parent3995b2d8f7be017e68c89730e467dc32455a2b14 (diff)
downloadscummvm-rg350-0e748c5a9784d19d10c23bb5c72f032a2331567b.tar.gz
scummvm-rg350-0e748c5a9784d19d10c23bb5c72f032a2331567b.tar.bz2
scummvm-rg350-0e748c5a9784d19d10c23bb5c72f032a2331567b.zip
Added basic cursor drawing.
svn-id: r50954
Diffstat (limited to 'backends/graphics/sdl')
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp4
-rw-r--r--backends/graphics/sdl/sdl-graphics.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index efb8e9afc8..b9318fd327 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -190,6 +190,10 @@ SdlGraphicsManager::SdlGraphicsManager()
}
SdlGraphicsManager::~SdlGraphicsManager() {
+ // Unregister the event observer
+ if (g_system->getEventManager()->getEventDispatcher() != NULL)
+ g_system->getEventManager()->getEventDispatcher()->unregisterObserver(this);
+
unloadGFXMode();
g_system->deleteMutex(_graphicsMutex);
diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h
index 157c754a5f..a990d31a0f 100644
--- a/backends/graphics/sdl/sdl-graphics.h
+++ b/backends/graphics/sdl/sdl-graphics.h
@@ -73,7 +73,7 @@ public:
/**
* SDL graphics manager
*/
-class SdlGraphicsManager : public GraphicsManager, public Common::EventObserver {
+class SdlGraphicsManager : public GraphicsManager, public Common::EventObserver {
public:
SdlGraphicsManager();
virtual ~SdlGraphicsManager();