From a827bb1c050ef6ca31a3e0bb80044c5ce3e55f00 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 16 Mar 2005 02:14:35 +0000 Subject: Patch from Quietust. Proper drawing of objects and fixes to inventory. svn-id: r17162 --- scumm/gfx.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scumm/gfx.h') 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); -- cgit v1.2.3