diff options
author | Alejandro Marzini | 2010-06-11 01:55:59 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-06-11 01:55:59 +0000 |
commit | 11e8ac61d1d446e9e5517ff9b39c701170f245bd (patch) | |
tree | a7d13dc984836050079366863b044b3717b88615 /backends/graphics/sdl | |
parent | 475fe8a3bd19c9484472f850f82b54e7081d544d (diff) | |
download | scummvm-rg350-11e8ac61d1d446e9e5517ff9b39c701170f245bd.tar.gz scummvm-rg350-11e8ac61d1d446e9e5517ff9b39c701170f245bd.tar.bz2 scummvm-rg350-11e8ac61d1d446e9e5517ff9b39c701170f245bd.zip |
Added missing virtual functions in abstract class GraphicsManager.
svn-id: r49589
Diffstat (limited to 'backends/graphics/sdl')
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h index 650b01794b..84935baaeb 100644 --- a/backends/graphics/sdl/sdl-graphics.h +++ b/backends/graphics/sdl/sdl-graphics.h @@ -81,17 +81,16 @@ public: int getDefaultGraphicsMode() const; bool setGraphicsMode(int mode); int getGraphicsMode() const; - #ifdef USE_RGB_COLOR - // Game screen virtual Graphics::PixelFormat getScreenFormat() const { return _screenFormat; } - - // Highest supported virtual Common::List<Graphics::PixelFormat> getSupportedFormats(); #endif + virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format = NULL); + virtual int getScreenChangeID() const { return _screenChangeCount; } + void beginGFXTransaction(); OSystem::TransactionError endGFXTransaction(); - virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format = NULL); + virtual int16 getHeight(); virtual int16 getWidth(); void setPalette(const byte *colors, uint start, uint num); @@ -102,14 +101,18 @@ public: void fillScreen(uint32 col); void updateScreen(); void setShakePos(int shakeOffset); + void setFocusRectangle(const Common::Rect& rect) {} + void clearFocusRectangle() {} + virtual void showOverlay(); virtual void hideOverlay(); virtual Graphics::PixelFormat getOverlayFormat() const { return _overlayFormat; } void clearOverlay(); void grabOverlay(OverlayColor *buf, int pitch); void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h); - virtual int16 getOverlayHeight() { return _videoMode.overlayHeight; } - virtual int16 getOverlayWidth() { return _videoMode.overlayWidth; } + virtual int16 getOverlayHeight() { return _videoMode.overlayHeight; } + virtual int16 getOverlayWidth() { return _videoMode.overlayWidth; } + bool showMouse(bool visible); virtual void warpMouse(int x, int y); virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int cursorTargetScale = 1, const Graphics::PixelFormat *format = NULL); @@ -118,7 +121,6 @@ public: _cursorPaletteDisabled = disable; blitCursor(); } - virtual int getScreenChangeID() const { return _screenChangeCount; } #ifdef USE_OSD void displayMessageOnOSD(const char *msg); |