aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/null/null-graphics.h
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-15 05:53:15 +0000
committerAlejandro Marzini2010-06-15 05:53:15 +0000
commit54377bbb308dc89337d1473cb1c5b5e84b470aff (patch)
tree5fcb37d907af2335d5a649b76479887a2bc77519 /backends/graphics/null/null-graphics.h
parentd2f9355aee5ad0dae6a2ebf34847901730cc441b (diff)
downloadscummvm-rg350-54377bbb308dc89337d1473cb1c5b5e84b470aff.tar.gz
scummvm-rg350-54377bbb308dc89337d1473cb1c5b5e84b470aff.tar.bz2
scummvm-rg350-54377bbb308dc89337d1473cb1c5b5e84b470aff.zip
Adapted null backend to ModularBackend.
svn-id: r49681
Diffstat (limited to 'backends/graphics/null/null-graphics.h')
-rw-r--r--backends/graphics/null/null-graphics.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/backends/graphics/null/null-graphics.h b/backends/graphics/null/null-graphics.h
index 3ee99be93d..4c75a9faba 100644
--- a/backends/graphics/null/null-graphics.h
+++ b/backends/graphics/null/null-graphics.h
@@ -32,25 +32,30 @@ static const OSystem::GraphicsMode s_noGraphicsModes[] = { {0, 0, 0} };
class NullGraphicsManager : GraphicsManager {
public:
- ~NullGraphicsManager() {}
+ virtual ~NullGraphicsManager() {}
bool hasFeature(OSystem::Feature f) { return false; }
void setFeatureState(OSystem::Feature f, bool enable) {}
bool getFeatureState(OSystem::Feature f) { return false; }
- const OSystem::GraphicsMode *getSupportedGraphicsModes() { return s_noGraphicsModes; }
- int getDefaultGraphicsMode() { return 0; }
+ const OSystem::GraphicsMode *getSupportedGraphicsModes() const { return s_noGraphicsModes; }
+ int getDefaultGraphicsMode() const { return 0; }
bool setGraphicsMode(int mode) { return true; }
- int getGraphicsMode() { return 0; }
+ int getGraphicsMode() const { return 0; }
inline Graphics::PixelFormat getScreenFormat() const {
return Graphics::PixelFormat::createFormatCLUT8();
};
- inline Common::List<Graphics::PixelFormat> getSupportedFormats() const {
+ inline Common::List<Graphics::PixelFormat> getSupportedFormats() {
Common::List<Graphics::PixelFormat> list;
list.push_back(Graphics::PixelFormat::createFormatCLUT8());
return list;
};
void initSize(uint width, uint height, const Graphics::PixelFormat *format = NULL) {}
+ virtual int getScreenChangeID() const { return 0; }
+
+ void beginGFXTransaction() {}
+ OSystem::TransactionError endGFXTransaction() { return OSystem::kTransactionSuccess; }
+
int16 getHeight() { return 0; }
int16 getWidth() { return 0; }
void setPalette(const byte *colors, uint start, uint num) {}
@@ -61,17 +66,23 @@ public:
void fillScreen(uint32 col) {}
void updateScreen() {}
void setShakePos(int shakeOffset) {}
+ void setFocusRectangle(const Common::Rect& rect) {}
+ void clearFocusRectangle() {}
+
void showOverlay() {}
void hideOverlay() {}
- Graphics::PixelFormat getOverlayFormat() { return Graphics::PixelFormat(); }
+ Graphics::PixelFormat getOverlayFormat() const { return Graphics::PixelFormat(); }
void clearOverlay() {}
void grabOverlay(OverlayColor *buf, int pitch) {}
void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) {}
int16 getOverlayHeight() { return 0; }
int16 getOverlayWidth() { return 0; }
+
bool showMouse(bool visible) { return !visible; }
void warpMouse(int x, int y) {}
void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int cursorTargetScale = 1, const Graphics::PixelFormat *format = NULL) {}
+ void setCursorPalette(const byte *colors, uint start, uint num) {}
+ void disableCursorPalette(bool disable) {}
};
#endif