diff options
author | Johannes Schickel | 2010-10-13 15:42:53 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-10-13 15:42:53 +0000 |
commit | 34302765caecabf21cc884de95805b3e1d8f8ea1 (patch) | |
tree | 82f7e3b1ae2b3300d66ccb47cb52eb5d088b837e /backends/platform/sdl | |
parent | 1769b520aaf066bb8298c8e2f9d089fb69cf0c02 (diff) | |
download | scummvm-rg350-34302765caecabf21cc884de95805b3e1d8f8ea1.tar.gz scummvm-rg350-34302765caecabf21cc884de95805b3e1d8f8ea1.tar.bz2 scummvm-rg350-34302765caecabf21cc884de95805b3e1d8f8ea1.zip |
OPENGL: Get rid of one ugly cast.
svn-id: r53435
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 38bf4d0ba9..f3609d8212 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -104,7 +104,7 @@ void OSystem_SDL::initBackend() { } #endif if (_graphicsManager == 0) { - _graphicsManager = new SdlGraphicsManager(); + _graphicsManager = new SdlGraphicsManager(this); graphicsManagerType = 0; } } @@ -352,7 +352,7 @@ bool OSystem_SDL::setGraphicsMode(int mode) { // manager, delete and create the new mode graphics manager if (_graphicsMode >= _sdlModesCount && mode < _sdlModesCount) { delete _graphicsManager; - _graphicsManager = new SdlGraphicsManager(); + _graphicsManager = new SdlGraphicsManager(this); ((SdlGraphicsManager *)_graphicsManager)->initEventObserver(); _graphicsManager->beginGFXTransaction(); } else if (_graphicsMode < _sdlModesCount && mode >= _sdlModesCount) { |