aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/cursor.h5
-rw-r--r--graphics/maccursor.h3
-rw-r--r--graphics/wincursor.h3
3 files changed, 11 insertions, 0 deletions
diff --git a/graphics/cursor.h b/graphics/cursor.h
index 9d839c12ce..b04d9c04e2 100644
--- a/graphics/cursor.h
+++ b/graphics/cursor.h
@@ -49,8 +49,13 @@ public:
/** Return the cursor's surface. */
virtual const byte *getSurface() const = 0;
+
/** Return the cursor's palette in RGB format. */
virtual const byte *getPalette() const = 0;
+ /** Return the starting index of the palette. */
+ virtual byte getPaletteStartIndex() const = 0;
+ /** Return the number of colors in the palette. */
+ virtual uint16 getPaletteCount() const = 0;
};
} // End of namespace Graphics
diff --git a/graphics/maccursor.h b/graphics/maccursor.h
index a6c8fc95ce..f5efc20655 100644
--- a/graphics/maccursor.h
+++ b/graphics/maccursor.h
@@ -57,7 +57,10 @@ public:
byte getKeyColor() const { return 0xFF; }
const byte *getSurface() const { return _surface; }
+
const byte *getPalette() const { return _palette; }
+ byte getPaletteStartIndex() const { return 0; }
+ uint16 getPaletteCount() const { return 256; }
/** Read the cursor's data out of a stream. */
bool readFromStream(Common::SeekableReadStream &stream, bool forceMonochrome = false);
diff --git a/graphics/wincursor.h b/graphics/wincursor.h
index 6e2567662b..974341f196 100644
--- a/graphics/wincursor.h
+++ b/graphics/wincursor.h
@@ -54,7 +54,10 @@ public:
byte getKeyColor() const;
const byte *getSurface() const { return _surface; }
+
const byte *getPalette() const { return _palette; }
+ byte getPaletteStartIndex() const { return 0; }
+ uint16 getPaletteCount() const { return 256; }
/** Read the cursor's data out of a stream. */
bool readFromStream(Common::SeekableReadStream &stream);