aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.h
diff options
context:
space:
mode:
authorMax Horn2005-06-04 16:10:39 +0000
committerMax Horn2005-06-04 16:10:39 +0000
commitfeac08c9f713c78330006ea60eb4f9e364ccc092 (patch)
treefe2aabea063e87bef5114fed1fc272f21af2e1fa /scumm/charset.h
parent83f9ebc373ca63d34efe2366fb7714b6ca67aef5 (diff)
downloadscummvm-rg350-feac08c9f713c78330006ea60eb4f9e364ccc092.tar.gz
scummvm-rg350-feac08c9f713c78330006ea60eb4f9e364ccc092.tar.bz2
scummvm-rg350-feac08c9f713c78330006ea60eb4f9e364ccc092.zip
Fix for bug #1064658 (FM-TOWNS (Loom, Zak, Indy3): Dialog text shading incorrect)
svn-id: r18343
Diffstat (limited to 'scumm/charset.h')
-rw-r--r--scumm/charset.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/scumm/charset.h b/scumm/charset.h
index 58228feb1b..98e8752c53 100644
--- a/scumm/charset.h
+++ b/scumm/charset.h
@@ -62,8 +62,6 @@ public:
protected:
byte _color;
- byte _shadowColor;
- bool _dropShadow;
public:
bool _center;
@@ -117,10 +115,19 @@ protected:
int _numChars;
int _fontHeight;
+ enum ShadowMode {
+ kNoShadowMode,
+ kFMTOWNSShadowMode,
+ kNormalShadowMode
+ };
+ byte _shadowColor;
+ ShadowMode _shadowMode;
+
+ void enableShadow(bool enable);
void drawBits1(const Graphics::Surface &s, byte *dst, const byte *src, int drawTop, int width, int height);
public:
- CharsetRendererCommon(ScummEngine *vm) : CharsetRenderer(vm), _numChars(0), _fontHeight(0) {}
+ CharsetRendererCommon(ScummEngine *vm);
void setCurID(byte id);