diff options
author | Max Horn | 2004-09-24 21:35:37 +0000 |
---|---|---|
committer | Max Horn | 2004-09-24 21:35:37 +0000 |
commit | 2872c312a942dbbb29645aca627d852ab1d38bcf (patch) | |
tree | 6fd59d1e6b52c32eec67b833cbc89717fe08eb04 /scumm/gfx.h | |
parent | 1036a7fc01d3b193204e14dbb756170eab207f7b (diff) | |
download | scummvm-rg350-2872c312a942dbbb29645aca627d852ab1d38bcf.tar.gz scummvm-rg350-2872c312a942dbbb29645aca627d852ab1d38bcf.tar.bz2 scummvm-rg350-2872c312a942dbbb29645aca627d852ab1d38bcf.zip |
Added some const qualifiers
svn-id: r15253
Diffstat (limited to 'scumm/gfx.h')
-rw-r--r-- | scumm/gfx.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/scumm/gfx.h b/scumm/gfx.h index 3bc93dfb69..724fb2b314 100644 --- a/scumm/gfx.h +++ b/scumm/gfx.h @@ -233,29 +233,29 @@ protected: /* Bitmap decompressors */ bool decompressBitmap(byte *dst, int dstPitch, const byte *src, int numLinesToProcess); - void drawStripEGA(byte *dst, int dstPitch, const byte *src, int height); + 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 drawStripComplex(byte *dst, int dstPitch, const byte *src, int height); - void drawStripComplex_trans(byte *dst, int dstPitch, const byte *src, int height); - void drawStripBasicH(byte *dst, int dstPitch, const byte *src, int height); - void drawStripBasicH_trans(byte *dst, int dstPitch, const byte *src, int height); - void drawStripBasicV(byte *dst, int dstPitch, const byte *src, int height); - void drawStripBasicV_trans(byte *dst, int dstPitch, const byte *src, int height); - - void unkDecode7(byte *dst, int dstPitch, const byte *src, int height); - void unkDecode8(byte *dst, int dstPitch, const byte *src, int height); - void unkDecode9(byte *dst, int dstPitch, const byte *src, int height); - void unkDecode10(byte *dst, int dstPitch, const byte *src, int height); - void unkDecode11(byte *dst, int dstPitch, const byte *src, int height); - void drawStrip3DO(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck); - void drawStripHE(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck); + void drawStripComplex(byte *dst, int dstPitch, const byte *src, int height) const; + void drawStripComplex_trans(byte *dst, int dstPitch, const byte *src, int height) const; + void drawStripBasicH(byte *dst, int dstPitch, const byte *src, int height) const; + void drawStripBasicH_trans(byte *dst, int dstPitch, const byte *src, int height) const; + void drawStripBasicV(byte *dst, int dstPitch, const byte *src, int height) const; + void drawStripBasicV_trans(byte *dst, int dstPitch, const byte *src, int height) const; + + void unkDecode7(byte *dst, int dstPitch, const byte *src, int height) const; + void unkDecode8(byte *dst, int dstPitch, const byte *src, int height) const; + void unkDecode9(byte *dst, int dstPitch, const byte *src, int height) const; + void unkDecode10(byte *dst, int dstPitch, const byte *src, int height) const; + void unkDecode11(byte *dst, int dstPitch, const byte *src, int height) const; + void drawStrip3DO(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const; + void drawStripHE(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const; /* Mask decompressors */ - void drawStripC64Mask(byte *dst, int stripnr, int width, int height); - void decompressMaskImgOr(byte *dst, const byte *src, int height); - void decompressMaskImg(byte *dst, const byte *src, int height); + void drawStripC64Mask(byte *dst, int stripnr, int width, int height) const; + void decompressMaskImgOr(byte *dst, const byte *src, int height) const; + void decompressMaskImg(byte *dst, const byte *src, int height) const; /* Misc */ void drawStripToScreen(VirtScreen *vs, int x, int w, int t, int b); @@ -263,21 +263,22 @@ protected: byte *getMaskBuffer(int x, int y, int z); - int getZPlanes(const byte *smap_ptr, const byte *zplane_list[9]); + int getZPlanes(const byte *smap_ptr, const byte *zplane_list[9]) const; - void decompressBMAPbg(byte *dst, int dstPitch, int w, int h, const byte *ptr); + void decompressBMAPbg(byte *dst, int dstPitch, int w, int h, const byte *ptr) const; void drawBitmapV2Helper(const byte *ptr, VirtScreen *vs, int x, int y, const int width, const int height, int stripnr, int numstrip, StripTable *table); public: void init(); + void updateNumStrips(); void drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int width, const int height, int stripnr, int numstrip, byte flag, StripTable *table = 0); - StripTable *generateStripTable(const byte *src, int width, int height, StripTable *table); - void decodeC64Gfx(const byte *src, byte *dst, int size); + StripTable *generateStripTable(const byte *src, int width, int height, StripTable *table) const; + void decodeC64Gfx(const byte *src, byte *dst, int size) const; void drawBMAPBg(const byte *ptr, VirtScreen *vs, int startstrip, int width); void drawBMAPObject(const byte *ptr, VirtScreen *vs, int obj, int x, int y, int w, int h); |