aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/picture.h
diff options
context:
space:
mode:
authorMartin Kiewitz2010-05-25 12:53:35 +0000
committerMartin Kiewitz2010-05-25 12:53:35 +0000
commit2502038e73e19dd5cf819834369fffa6e86caa7d (patch)
tree91064650f133c94de278b1041b16bbf1a75d8245 /engines/sci/graphics/picture.h
parent5317b8195d252942f084e3120809ab496411e963 (diff)
downloadscummvm-rg350-2502038e73e19dd5cf819834369fffa6e86caa7d.tar.gz
scummvm-rg350-2502038e73e19dd5cf819834369fffa6e86caa7d.tar.bz2
scummvm-rg350-2502038e73e19dd5cf819834369fffa6e86caa7d.zip
SCI: sci1.1 uses hardcoded white for picture cel data instead of the value specified in header - fixes pixel glitches in island of dr. brain title, sq4 title and qfg3 room during intro
svn-id: r49213
Diffstat (limited to 'engines/sci/graphics/picture.h')
-rw-r--r--engines/sci/graphics/picture.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/graphics/picture.h b/engines/sci/graphics/picture.h
index 3374c33b52..ba6052b059 100644
--- a/engines/sci/graphics/picture.h
+++ b/engines/sci/graphics/picture.h
@@ -32,6 +32,12 @@ namespace Sci {
#define SCI_PATTERN_CODE_USE_TEXTURE 0x20
#define SCI_PATTERN_CODE_PENSIZE 0x07
+enum {
+ SCI_PICTURE_CELTYPE_REGULAR = 0,
+ SCI_PICTURE_CELTYPE_SCI11 = 1,
+ SCI_PICTURE_CELTYPE_SCI32 = 2
+};
+
class GfxPorts;
class GfxScreen;
class GfxPalette;
@@ -57,7 +63,7 @@ private:
void initData(GuiResourceId resourceId);
void reset();
void drawSci11Vga();
- void drawCelData(byte *inbuffer, int size, int headerPos, int rlePos, int literalPos, int16 callerX, int16 callerY, bool hasSci32Header);
+ void drawCelData(byte *inbuffer, int size, int headerPos, int rlePos, int literalPos, int16 callerX, int16 callerY, int celType);
void drawVectorData(byte *data, int size);
bool vectorIsNonOpcode(byte pixel);
void vectorGetAbsCoords(byte *data, int &curPos, int16 &x, int16 &y);