aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.h
diff options
context:
space:
mode:
authorMax Horn2004-08-08 22:10:38 +0000
committerMax Horn2004-08-08 22:10:38 +0000
commit835ef5f0127718959425dfdd7c123cf14ce13829 (patch)
tree38beec4b02a7fdf0d08fd22fdd7f2e2b9ab07cee /scumm/gfx.h
parentf8cc6c22416c0e9615abfdd98fc2e86852e897a9 (diff)
downloadscummvm-rg350-835ef5f0127718959425dfdd7c123cf14ce13829.tar.gz
scummvm-rg350-835ef5f0127718959425dfdd7c123cf14ce13829.tar.bz2
scummvm-rg350-835ef5f0127718959425dfdd7c123cf14ce13829.zip
Patch #1003866 (SCUMM: New text rendering code (fixes various bugs))
svn-id: r14521
Diffstat (limited to 'scumm/gfx.h')
-rw-r--r--scumm/gfx.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/scumm/gfx.h b/scumm/gfx.h
index 8c445f42a3..0bee946897 100644
--- a/scumm/gfx.h
+++ b/scumm/gfx.h
@@ -24,6 +24,7 @@
#define GFX_H
#include "common/rect.h"
+#include "graphics/surface.h"
namespace Scumm {
@@ -217,7 +218,11 @@ public:
Gdi(ScummEngine *vm);
+ Graphics::Surface _textSurface;
+
protected:
+ byte *_compositeBuf;
+
byte *_roomPalette;
byte _decomp_shr, _decomp_mask;
byte _transparentColor;
@@ -251,9 +256,7 @@ protected:
void decodeStrip3DO(byte *dst, const byte *src, int height, byte transpCheck);
void decodeStripHE(byte *dst, const byte *src, int height, byte transpCheck);
- void draw8ColWithMasking(byte *dst, const byte *src, int height, byte *mask);
void draw8Col(byte *dst, const byte *src, int height);
- void clear8ColWithMasking(byte *dst, int height, byte *mask);
void clear8Col(byte *dst, int height);
void decompressMaskImgOr(byte *dst, const byte *src, int height);
void decompressMaskImg(byte *dst, const byte *src, int height);
@@ -261,9 +264,11 @@ protected:
void drawStripToScreen(VirtScreen *vs, int x, int w, int t, int b);
void updateDirtyScreen(VirtScreen *vs);
- byte *getMaskBuffer(int x, int y, int z = 0);
+ byte *getMaskBuffer(int x, int y, int z);
public:
+ void init();
+
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);
void drawBitmapV2Helper(const byte *ptr, VirtScreen *vs, int x, int y, const int width, const int height,