aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x/gp2x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/gp2x/gp2x.cpp')
-rw-r--r--backends/platform/gp2x/gp2x.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/gp2x/gp2x.cpp b/backends/platform/gp2x/gp2x.cpp
index 49a7132974..8ae54d679c 100644
--- a/backends/platform/gp2x/gp2x.cpp
+++ b/backends/platform/gp2x/gp2x.cpp
@@ -136,12 +136,12 @@ void OSystem_GP2X::initBackend() {
GP2X_HW::mixerMoveVolume(0);
// Create the events manager
- if (_eventManager == 0)
- _eventManager = new GP2XSdlEventSource(this);
+ if (_eventSource == 0)
+ _eventSource = new GP2XSdlEventSource();
// Create the graphics manager
if (_graphicsManager == 0)
- _graphicsManager = new GP2XSdlGraphicsManager();
+ _graphicsManager = new GP2XSdlGraphicsManager(_eventSource);
// Call parent implementation of this method
OSystem_POSIX::initBackend();