aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-03-16 02:14:35 +0000
committerEugene Sandulenko2005-03-16 02:14:35 +0000
commita827bb1c050ef6ca31a3e0bb80044c5ce3e55f00 (patch)
treec18b0b932d341d153db653898d43a7540103dc47 /scumm/gfx.h
parent6e33b3f0a7b80a5d84c277bed05ee376b4ebb517 (diff)
downloadscummvm-rg350-a827bb1c050ef6ca31a3e0bb80044c5ce3e55f00.tar.gz
scummvm-rg350-a827bb1c050ef6ca31a3e0bb80044c5ce3e55f00.tar.bz2
scummvm-rg350-a827bb1c050ef6ca31a3e0bb80044c5ce3e55f00.zip
Patch from Quietust. Proper drawing of objects and fixes to inventory.
svn-id: r17162
Diffstat (limited to 'scumm/gfx.h')
-rw-r--r--scumm/gfx.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/gfx.h b/scumm/gfx.h
index df55ca8a5b..d32682e5bb 100644
--- a/scumm/gfx.h
+++ b/scumm/gfx.h
@@ -231,6 +231,8 @@ protected:
byte _NESPatTable[4096], _NESNametable[16][64], _NESAttributes[64], _NESPalette[16];
byte _NESBaseTiles;
+ byte _NESNametableObj[16][64];
+ int _NESObj_x;
/* Bitmap decompressors */
bool decompressBitmap(byte *dst, int dstPitch, const byte *src, int numLinesToProcess);
@@ -238,7 +240,7 @@ protected:
void drawStripEGA(byte *dst, int dstPitch, const byte *src, int height) const;
void drawStripC64Object(byte *dst, int dstPitch, int stripnr, int width, int height);
void drawStripC64Background(byte *dst, int dstPitch, int stripnr, int height);
- void drawStripNES(byte *dst, int dstPitch, int stripnr, int height);
+ void drawStripNES(byte *dst, int dstPitch, int stripnr, int top, int height, bool isObject);
void drawStripComplex(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
void drawStripBasicH(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
@@ -280,6 +282,7 @@ public:
StripTable *generateStripTable(const byte *src, int width, int height, StripTable *table) const;
void decodeC64Gfx(const byte *src, byte *dst, int size) const;
void decodeNESGfx(const byte *room);
+ void decodeNESObject(const byte *ptr, int xpos, int ypos, int width, int height);
void drawBMAPBg(const byte *ptr, VirtScreen *vs, int startstrip);
void drawBMAPObject(const byte *ptr, VirtScreen *vs, int obj, int x, int y, int w, int h);