From 4ed7a101558cdd73e6b51132f19708bcd9251dd6 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 9 Apr 2012 17:34:30 +0200 Subject: LILLIPUT: Add default palette, and palette fixup (thanks to SylvainTV for the help) --- engines/lilliput/lilliput.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'engines/lilliput/lilliput.h') diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h index e6cbe331b4..b73b5394fe 100644 --- a/engines/lilliput/lilliput.h +++ b/engines/lilliput/lilliput.h @@ -23,11 +23,14 @@ #ifndef LILLIPUT_LILLIPUT_H #define LILLIPUT_LILLIPUT_H -#include "engines/engine.h" -#include "common/file.h" #include "lilliput/console.h" #include "lilliput/script.h" +#include "common/file.h" +#include "engines/engine.h" +#include "graphics/palette.h" +#include "graphics/surface.h" + namespace Common { class RandomSource; } @@ -76,6 +79,7 @@ public: Common::RandomSource *_rnd; LilliputScript *_scriptHandler; + Graphics::Surface *_mainSurface; struct18560 _arr18560[4]; byte _byte1714E; @@ -95,7 +99,7 @@ public: byte *_bufferIsoChars; byte *_bufferIdeogram; byte _buffer10[4032]; - byte _palette[768]; + byte _curPalette[768]; bool _saveFlag; @@ -159,6 +163,9 @@ public: byte *loadRaw(Common::String filename); void loadRules(); + void initPalette(); + void fixPaletteEntries(uint8 *palette, int num); + GameType getGameType() const; Common::Platform getPlatform() const; -- cgit v1.2.3