diff options
author | Gregory Montoir | 2003-10-16 18:57:56 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-16 18:57:56 +0000 |
commit | 5e36a5cac8571bc2e1c790df3bd0d190141946e9 (patch) | |
tree | 8642b2f12220de956ac413793e332091ea6b41fb /queen/display.h | |
parent | 7c55594afc99f76954e563770ef966cceddedb39 (diff) | |
download | scummvm-rg350-5e36a5cac8571bc2e1c790df3bd0d190141946e9.tar.gz scummvm-rg350-5e36a5cac8571bc2e1c790df3bd0d190141946e9.tar.bz2 scummvm-rg350-5e36a5cac8571bc2e1c790df3bd0d190141946e9.zip |
modified/fixed palette code
svn-id: r10832
Diffstat (limited to 'queen/display.h')
-rw-r--r-- | queen/display.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/queen/display.h b/queen/display.h index 0d04709308..cb4a925309 100644 --- a/queen/display.h +++ b/queen/display.h @@ -62,9 +62,10 @@ public: void dynalumInit(Resource *resource, const char *roomName, uint16 roomNum); void dynalumUpdate(int x, int y); - void palSetRoom(const uint8 *pal, int start, int end); - void palFadeIn(uint8 start, uint8 end, uint16 roomNum); - void palFadeOut(uint8 start, uint8 end, uint16 roomNum); + void palConvert(uint8 *outPal, const uint8 *inPal, int start, int end); + void palSet(const uint8 *pal, int start, int end); + void palFadeIn(int start, int end, uint16 roomNum); + void palFadeOut(int start, int end, uint16 roomNum); void palFadePanel(); void palCustomColors(uint16 roomNum); // check_colors void palCustomScroll(uint16 roomNum); // check_pal_scroll @@ -91,6 +92,10 @@ public: private: + enum { + FADE_SPEED = 16 + }; + enum BufferDimension { BACKDROP_W = 640, BACKDROP_H = 200, @@ -103,9 +108,10 @@ private: TextRenderer _textRenderer; struct { - uint8 *screen; uint8 *room; + uint8 *screen; int dirtyMin, dirtyMax; + bool scrollable; } _pals; uint8 *_buffers[3]; |