diff options
author | Johannes Schickel | 2013-10-20 23:29:40 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-10-23 22:58:42 +0200 |
commit | e91300f70cb17722347b809ffe94f0bc585655de (patch) | |
tree | 82b265942bbe30861106be5c621c2c2a63c7fef8 /backends/platform/sdl/sdl.h | |
parent | 1a56b521b598efcb1587dd8934b6564cf5799b7b (diff) | |
download | scummvm-rg350-e91300f70cb17722347b809ffe94f0bc585655de.tar.gz scummvm-rg350-e91300f70cb17722347b809ffe94f0bc585655de.tar.bz2 scummvm-rg350-e91300f70cb17722347b809ffe94f0bc585655de.zip |
SDL: Clean up graphics mode handling for OpenGL backend.
Instead of custom memory management Common::Array is used now.
Diffstat (limited to 'backends/platform/sdl/sdl.h')
-rw-r--r-- | backends/platform/sdl/sdl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index 590354b699..6348519681 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -30,6 +30,8 @@ #include "backends/events/sdl/sdl-events.h" #include "backends/log/log.h" +#include "common/array.h" + /** * Base OSystem class for all SDL ports. */ @@ -108,7 +110,8 @@ protected: #ifdef USE_OPENGL int _desktopWidth, _desktopHeight; - OSystem::GraphicsMode *_graphicsModes; + typedef Common::Array<GraphicsMode> GraphicsModeArray; + GraphicsModeArray _graphicsModes; int _graphicsMode; int _sdlModesCount; int _glModesCount; |