aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/charset.h
diff options
context:
space:
mode:
authorMax Horn2007-01-28 20:11:31 +0000
committerMax Horn2007-01-28 20:11:31 +0000
commit27432a4dc13ec3f80eac61f17296aef5533e46bf (patch)
tree0c4c2e800229bb9f93e85d79f6df8572ebeb6f6e /engines/scumm/charset.h
parente287f181edbec10bd6ba54f713eb44acecf47b40 (diff)
downloadscummvm-rg350-27432a4dc13ec3f80eac61f17296aef5533e46bf.tar.gz
scummvm-rg350-27432a4dc13ec3f80eac61f17296aef5533e46bf.tar.bz2
scummvm-rg350-27432a4dc13ec3f80eac61f17296aef5533e46bf.zip
Moved some stuff from CharsetRenderer (back) to ScummEngine, added comments
svn-id: r25250
Diffstat (limited to 'engines/scumm/charset.h')
-rw-r--r--engines/scumm/charset.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/engines/scumm/charset.h b/engines/scumm/charset.h
index 54091eeee7..04aecb98cb 100644
--- a/engines/scumm/charset.h
+++ b/engines/scumm/charset.h
@@ -43,7 +43,6 @@ class CharsetRenderer {
public:
Common::Rect _str;
- int _nextLeft, _nextTop;
int _top;
int _left, _startLeft;
@@ -62,12 +61,6 @@ public:
bool _firstChar;
bool _disableOffsX;
- /**
- * All text is normally rendered into this overlay surface. Then later
- * drawStripToScreen() composits it over the game graphics.
- */
- Graphics::Surface _textSurface;
-
protected:
ScummEngine *_vm;
byte _curId;
@@ -76,10 +69,6 @@ public:
CharsetRenderer(ScummEngine *vm);
virtual ~CharsetRenderer();
- void restoreCharsetBg();
- void clearCharsetMask();
- void clearTextSurface();
-
virtual void printChar(int chr, bool ignoreCharsetMask) = 0;
virtual void drawChar(int chr, const Graphics::Surface &s, int x, int y) {}
@@ -127,6 +116,8 @@ class CharsetRendererClassic : public CharsetRendererCommon {
protected:
void drawBitsN(const Graphics::Surface &s, byte *dst, const byte *src, byte bpp, int drawTop, int width, int height);
+ void printCharIntern(bool is2byte, const byte *charPtr, int origWidth, int origHeight, int width, int height, VirtScreen *vs, bool ignoreCharsetMask);
+
public:
CharsetRendererClassic(ScummEngine *vm) : CharsetRendererCommon(vm) {}