aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl/sdl-common.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-02-20 02:04:45 +0000
committerEugene Sandulenko2005-02-20 02:04:45 +0000
commitf420dd3b785157e95f0dd6255bf35f88db1ec674 (patch)
tree1771504d1c27d911ee03dca9c51c651fad9e1611 /backends/sdl/sdl-common.h
parent47400c1932451009c58b07df53a53621ad655879 (diff)
downloadscummvm-rg350-f420dd3b785157e95f0dd6255bf35f88db1ec674.tar.gz
scummvm-rg350-f420dd3b785157e95f0dd6255bf35f88db1ec674.tar.bz2
scummvm-rg350-f420dd3b785157e95f0dd6255bf35f88db1ec674.zip
Implement OSystem method disableCursorPalette(bool disable) as mentioned
in patch #1013937 (OSystem layer with bigger resolution). svn-id: r16820
Diffstat (limited to 'backends/sdl/sdl-common.h')
-rw-r--r--backends/sdl/sdl-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h
index 7296131b1e..61b5fb4fbf 100644
--- a/backends/sdl/sdl-common.h
+++ b/backends/sdl/sdl-common.h
@@ -87,6 +87,9 @@ public:
// Set colors of cursor palette
void setCursorPalette(const byte *colors, uint start, uint num);
+ // Disables or enables cursor palette
+ void disableCursorPalette(bool disable) { _cursorPaletteDisabled = disable; };
+
// Shaking is used in SCUMM. Set current shake position.
void setShakePos(int shake_pos);
@@ -277,6 +280,7 @@ protected:
byte _mouseKeyColor;
int _cursorTargetScale;
bool _cursorHasOwnPalette;
+ bool _cursorPaletteDisabled;
SDL_Surface *_mouseOrigSurface;
SDL_Surface *_mouseSurface;
enum {