aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/surfacesdl
diff options
context:
space:
mode:
authorJohannes Schickel2011-08-09 00:04:19 +0200
committerJohannes Schickel2011-08-09 00:04:19 +0200
commitfd61a83bb52febb2d620d858d6685c8232251105 (patch)
treec90201a13d45c73884a4015327dd3f84a1ab45e8 /backends/graphics/surfacesdl
parent04ab0e58b4142bf58db2180a2bac6897821d069f (diff)
downloadscummvm-rg350-fd61a83bb52febb2d620d858d6685c8232251105.tar.gz
scummvm-rg350-fd61a83bb52febb2d620d858d6685c8232251105.tar.bz2
scummvm-rg350-fd61a83bb52febb2d620d858d6685c8232251105.zip
SDL: Slight clean up in the surface based graphics manager.
Diffstat (limited to 'backends/graphics/surfacesdl')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp4
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index f2dfdb8ff3..81c439e7e2 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -122,7 +122,7 @@ static AspectRatio getDesiredAspectRatio() {
SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSource)
:
- SdlGraphicsManager(sdlEventSource), _sdlEventSource(sdlEventSource),
+ SdlGraphicsManager(sdlEventSource),
#ifdef USE_OSD
_osdSurface(0), _osdAlpha(SDL_ALPHA_TRANSPARENT), _osdFadeStartTime(0),
#endif
@@ -846,7 +846,7 @@ bool SurfaceSdlGraphicsManager::loadGFXMode() {
SDL_SetColorKey(_osdSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kOSDColorKey);
#endif
- _sdlEventSource->resetKeyboadEmulation(
+ _eventSource->resetKeyboadEmulation(
_videoMode.screenWidth * _videoMode.scaleFactor - 1,
effectiveScreenHeight() - 1);
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.h b/backends/graphics/surfacesdl/surfacesdl-graphics.h
index 925563b539..f71096d43e 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.h
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.h
@@ -147,8 +147,6 @@ public:
virtual void notifyMousePos(Common::Point mouse);
protected:
- SdlEventSource *_sdlEventSource;
-
#ifdef USE_OSD
/** Surface containing the OSD message */
SDL_Surface *_osdSurface;