From ab039812e7d0a0202317c61a2cb64874e4d0c410 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 7 Feb 2011 17:52:38 +0000 Subject: COMMON: OSystem now has a PaletteManager svn-id: r55806 --- backends/platform/wii/osystem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'backends/platform/wii') diff --git a/backends/platform/wii/osystem.h b/backends/platform/wii/osystem.h index ddfa905a77..9ed4b16d79 100644 --- a/backends/platform/wii/osystem.h +++ b/backends/platform/wii/osystem.h @@ -54,7 +54,7 @@ extern void wii_memstats(void); } #endif -class OSystem_Wii : public BaseBackend { +class OSystem_Wii : public BaseBackend, public PaletteManager { private: s64 _startup_time; @@ -164,8 +164,12 @@ public: const Graphics::PixelFormat *format); virtual int16 getWidth(); virtual int16 getHeight(); + + virtual PaletteManager *getPaletteManager() { return this; } +protected: virtual void setPalette(const byte *colors, uint start, uint num); virtual void grabPalette(byte *colors, uint start, uint num); +public: virtual void setCursorPalette(const byte *colors, uint start, uint num); virtual void disableCursorPalette(bool disable); virtual void copyRectToScreen(const byte *buf, int pitch, int x, int y, -- cgit v1.2.3