From 004f6900b11e0ce841816f06e851ec37b8907466 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 25 Jun 2009 01:29:14 +0000 Subject: Initial support for Kyrandia 1 PC-9801 Japanese 16 color. svn-id: r41844 --- engines/kyra/screen_lok.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'engines/kyra/screen_lok.h') diff --git a/engines/kyra/screen_lok.h b/engines/kyra/screen_lok.h index d74da66df5..39a5cc3571 100644 --- a/engines/kyra/screen_lok.h +++ b/engines/kyra/screen_lok.h @@ -77,6 +77,23 @@ protected: uint8 *_saveLoadPageOvl[8]; }; +class Screen_LoK_16 : public Screen_LoK { +public: + Screen_LoK_16(KyraEngine_LoK *vm, OSystem *system); + + void setScreenPalette(const Palette &pal); +private: + void updateDirtyRectsOvl(); + + void convertTo16Colors(uint8 *page, int w, int h); + void mergeOverlay(int x, int y, int w, int h); + + void paletteMap(uint8 idx, int r, int g, int b); + uint8 _paletteMap[1024]; + + static const uint8 _palette16[48]; +}; + } // end of namespace Kyra #endif -- cgit v1.2.3