aboutsummaryrefslogtreecommitdiff
path: root/engines/access/data.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-17 18:56:05 -0400
committerPaul Gilbert2014-08-17 18:56:05 -0400
commit9393f6d7559653a28166fe74da9745e95b76f85b (patch)
tree23c8bba593a9f55a1ef3eaa06cf14468d0e2527f /engines/access/data.h
parent4ea9339d183cb53f465d7752e739cf8a153a7978 (diff)
downloadscummvm-rg350-9393f6d7559653a28166fe74da9745e95b76f85b.tar.gz
scummvm-rg350-9393f6d7559653a28166fe74da9745e95b76f85b.tar.bz2
scummvm-rg350-9393f6d7559653a28166fe74da9745e95b76f85b.zip
ACCESS: Implemented bubble box drawing code
Diffstat (limited to 'engines/access/data.h')
-rw-r--r--engines/access/data.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/access/data.h b/engines/access/data.h
index 910e2523d1..fd3c889ddb 100644
--- a/engines/access/data.h
+++ b/engines/access/data.h
@@ -87,12 +87,16 @@ public:
class Font {
private:
- int _v1;
- int _v2;
- Common::Array<const byte *> _chars;
+ int _bitWidth;
+ int _height;
+ Common::Array<Graphics::Surface> _chars;
+public:
+ static byte _fontColors[4];
public:
Font();
+ ~Font();
+
/**
* Load the given font data
*/
@@ -118,6 +122,15 @@ public:
*/
bool getLine(Common::String &s, int maxWidth, Common::String &line, int &width);
+ /**
+ * Draw a string on a given surface
+ */
+ void drawString(Graphics::Surface *s, const Common::String &msg, const Common::Point &pt);
+
+ /**
+ * Draw a character on a given surface
+ */
+ int drawChar(Graphics::Surface *s, char c, Common::Point &pt);
};
class FontManager {