aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screen.h
diff options
context:
space:
mode:
authorBenjamin Haisch2008-04-25 11:20:43 +0000
committerBenjamin Haisch2008-04-25 11:20:43 +0000
commit3dc6263b171f7b351dd13962f1094bb4ee3129a2 (patch)
tree49cecdd4312a102fa72a0923eb2fd5ae558df2fd /engines/made/screen.h
parent134762be381ef76cb3a13f7ea37e9f0a6464ae00 (diff)
downloadscummvm-rg350-3dc6263b171f7b351dd13962f1094bb4ee3129a2.tar.gz
scummvm-rg350-3dc6263b171f7b351dd13962f1094bb4ee3129a2.tar.bz2
scummvm-rg350-3dc6263b171f7b351dd13962f1094bb4ee3129a2.zip
Started work on text drawing code.
svn-id: r31719
Diffstat (limited to 'engines/made/screen.h')
-rw-r--r--engines/made/screen.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/made/screen.h b/engines/made/screen.h
index d95e9440ae..d5dc1bb3e2 100644
--- a/engines/made/screen.h
+++ b/engines/made/screen.h
@@ -31,6 +31,8 @@
#include "graphics/surface.h"
+#include "made/resource.h"
+
namespace Made {
struct SpriteChannel {
@@ -70,7 +72,6 @@ public:
void setClip(uint16 clip) { _clip = clip; }
void setExclude(uint16 exclude) { _exclude = exclude; }
void setGround(uint16 ground) { _ground = ground; }
- void setFont(uint16 font) { _currentFont = font; }
void setTextColor(int16 color) { _textColor = color; }
void setOutlineColor(int16 color) {
@@ -116,7 +117,9 @@ public:
void show();
void flash(int count);
- byte _screenPalette[256 * 4];
+ void setFont(int16 fontIndex);
+ void printChar(char c, int16 x, int16 y, byte color);
+
protected:
MadeEngine *_vm;
@@ -124,6 +127,7 @@ protected:
bool _screenLock;
bool _paletteLock;
+ byte _screenPalette[256 * 4];
byte _palette[768], _newPalette[768], _fxPalette[768];
int _paletteColorCount, _oldPaletteColorCount;
bool _paletteInitialized, _needPalette;
@@ -132,6 +136,11 @@ protected:
int16 _outlineColor;
int16 _dropShadowColor;
+ int16 _textX, _textY;
+ int16 _currentFontIndex;
+ FontResource *_font;
+ ClipInfo _fontDrawCtx;
+
uint16 _clip, _exclude, _ground;
int _visualEffectNum;