22 #ifndef KYRA_SCREEN_LOK_H 23 #define KYRA_SCREEN_LOK_H 25 #include "kyra/graphics/screen.h" 38 void loadBitmap(
const char *filename,
int tempPage,
int dstPage,
Palette *pal,
bool skip =
false)
override;
40 int getRectSize(
int w,
int h)
override;
42 void setTextColorMap(
const uint8 *cmap)
override;
44 void fadeSpecialPalette(
int palIndex,
int startIndex,
int size,
int fadeTime);
46 void savePageToDisk(
const char *file,
int page);
47 void loadPageFromDisk(
const char *file,
int page);
48 void queryPageFromDisk(
const char *file,
int page, uint8 *buffer);
49 void deletePageFromDisk(
int page);
51 void copyBackgroundBlock(
int x,
int page,
int flag);
52 void copyBackgroundBlock2(
int x);
54 void addBitBlitRect(
int x,
int y,
int w,
int h);
58 void setInterfacePalette(
const Palette &pal, uint8 r, uint8 g, uint8 b);
59 void postProcessCursor(uint8 *data,
int width,
int height,
int pitch)
override;
69 static const int _screenDimTableCount;
73 uint8 *_unkPtr1, *_unkPtr2;
75 uint8 *_saveLoadPage[8];
76 uint8 *_saveLoadPageOvl[8];
83 void setScreenPalette(
const Palette &pal)
override;
86 void getFadeParams(
const Palette &pal,
int delay,
int &delayInc,
int &diff)
override;
87 int fadePalStep(
const Palette &pal,
int diff)
override;
89 void updateDirtyRectsOvl();
91 void convertTo16Colors(uint8 *page,
int w,
int h,
int pitch,
int keyColor = -1);
92 void postProcessCursor(uint8 *data,
int width,
int height,
int pitch)
override {
93 convertTo16Colors(data, width, height, pitch, _cursorColorKey);
95 void mergeOverlay(
int x,
int y,
int w,
int h)
override;
97 void set16ColorPalette(
const uint8 *pal);
99 void paletteMap(uint8 idx,
int r,
int g,
int b);
101 struct PaletteDither {
106 PaletteDither _paletteDither[256];
108 static const uint8 _palette16[48];
Definition: screen_lok.h:79
Definition: kyra_lok.h:97
Definition: screen_lok.h:31
Definition: detection.h:27