diff options
author | Johannes Schickel | 2012-02-20 01:07:48 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-20 01:32:48 +0100 |
commit | 8102e7e645db5103369799cd7aae390da099746f (patch) | |
tree | 4186eb969cb8c0f48f9aec1f82198c4eb63e84dc /backends/platform/iphone/osys_main.h | |
parent | 65cda4cd6b39c9b9e694a0a8ef696458ac1c2b20 (diff) | |
download | scummvm-rg350-8102e7e645db5103369799cd7aae390da099746f.tar.gz scummvm-rg350-8102e7e645db5103369799cd7aae390da099746f.tar.bz2 scummvm-rg350-8102e7e645db5103369799cd7aae390da099746f.zip |
IPHONE: Implement cursor palette support.
Diffstat (limited to 'backends/platform/iphone/osys_main.h')
-rw-r--r-- | backends/platform/iphone/osys_main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/iphone/osys_main.h b/backends/platform/iphone/osys_main.h index 6a779a8fde..61816cfa35 100644 --- a/backends/platform/iphone/osys_main.h +++ b/backends/platform/iphone/osys_main.h @@ -82,12 +82,15 @@ protected: uint32 _timeSuspended; bool _mouseVisible; + bool _mouseCursorPaletteEnabled; + uint16 _mouseCursorPalette[256]; byte *_mouseBuf; byte _mouseKeyColor; uint _mouseWidth, _mouseHeight; uint _mouseX, _mouseY; int _mouseHotspotX, _mouseHotspotY; bool _mouseDirty; + bool _mouseNeedTextureUpdate; long _lastMouseDown; long _lastMouseTap; long _queuedEventTime; @@ -159,6 +162,7 @@ public: virtual void warpMouse(int x, int y); virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 255, int cursorTargetScale = 1, const Graphics::PixelFormat *format = NULL); + virtual void setCursorPalette(const byte *colors, uint start, uint num); virtual bool pollEvent(Common::Event &event); virtual uint32 getMillis(); @@ -195,6 +199,7 @@ protected: void drawDirtyRect(const Common::Rect &dirtyRect); void drawDirtyOverlayRect(const Common::Rect &dirtyRect); void updateHardwareSurfaceForRect(const Common::Rect &updatedRect); + void updateMouseTexture(); static void AQBufferCallback(void *in, AudioQueueRef inQ, AudioQueueBufferRef outQB); static int timerHandler(int t); |