aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-09-13 21:08:54 +1000
committerPaul Gilbert2012-09-13 21:08:54 +1000
commite66ce45d0ab44bcc0e0ce10864da5bf0296cf075 (patch)
tree0ba5c1c071d0fc94feb93fc90c817c0fdb146e3c /engines/hopkins/graphics.h
parent254d4ac72b42a944b7d8c873530ec5d8ba73d738 (diff)
downloadscummvm-rg350-e66ce45d0ab44bcc0e0ce10864da5bf0296cf075.tar.gz
scummvm-rg350-e66ce45d0ab44bcc0e0ce10864da5bf0296cf075.tar.bz2
scummvm-rg350-e66ce45d0ab44bcc0e0ce10864da5bf0296cf075.zip
HOPKINS: Further work and bugfixes on palette processing
Diffstat (limited to 'engines/hopkins/graphics.h')
-rw-r--r--engines/hopkins/graphics.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/hopkins/graphics.h b/engines/hopkins/graphics.h
index 9151e62684..804498c122 100644
--- a/engines/hopkins/graphics.h
+++ b/engines/hopkins/graphics.h
@@ -43,16 +43,17 @@ class GraphicsManager {
private:
void CHARGE_ECRAN(const Common::String &file);
public:
+ int _lockCtr;
bool SDL_MODEYES;
int SDL_ECHELLE;
int XSCREEN;
int YSCREEN;
int WinScan;
int Winbpp;
- byte SD_PIXELS[257 * 2];
+ byte SD_PIXELS[PALETTE_SIZE * 2];
byte *PAL_PIXELS;
int nbrligne;
- byte TABLE_COUL[256];
+ byte TABLE_COUL[PALETTE_SIZE];
byte cmap[PALETTE_BLOCK_SIZE];
byte Palette[PALETTE_BLOCK_SIZE];
bool Linear;
@@ -85,10 +86,10 @@ public:
void INIT_TABLE(int a1, int a2, byte *a3);
int SCROLL_ECRAN(int amount);
void Trans_bloc(byte *destP, byte *srcP, int count, int param1, int param2);
- void A_PCXSCREEN_WIDTH_SCREEN_HEIGHT(byte *surface, const Common::String &file, byte *palette, bool typeFlag);
+ void A_PCX640_480(byte *surface, const Common::String &file, byte *palette, bool typeFlag);
void Cls_Pal();
void souris_max();
- void SCANLINE(int width);
+ void SCANLINE(int pitch);
void m_scroll(const byte *surface, int xs, int ys, int width, int height, int destX, int destY);
void m_scroll2(const byte *surface, int xs, int ys, int width, int height, int destX, int destY);
void m_scroll2A(const byte *surface, int xs, int ys, int width, int height, int destX, int destY);
@@ -102,6 +103,7 @@ public:
void FADE_OUTW();
void setpal_vga256(const byte *palette);
void CHANGE_PALETTE(const byte *palette);
+ uint16 MapRGB(byte r, byte g, byte b);
void DD_VBL();
};