diff options
author | Sven Hesse | 2012-07-07 18:45:15 +0200 |
---|---|---|
committer | Sven Hesse | 2012-07-30 01:44:45 +0200 |
commit | 5b02192477cbdc9e8251bd48cac764d6fa61d024 (patch) | |
tree | 905e18a826f24814e53bc054e4c2c313d34a692b /engines/gob | |
parent | 75e7cca6921ae005cd5c4fa39b9cfa49be2a4cbb (diff) | |
download | scummvm-rg350-5b02192477cbdc9e8251bd48cac764d6fa61d024.tar.gz scummvm-rg350-5b02192477cbdc9e8251bd48cac764d6fa61d024.tar.bz2 scummvm-rg350-5b02192477cbdc9e8251bd48cac764d6fa61d024.zip |
GOB: Add Font::hasChar()
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/video.cpp | 4 | ||||
-rw-r--r-- | engines/gob/video.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/video.cpp b/engines/gob/video.cpp index 62bb210a8e..64af34cf62 100644 --- a/engines/gob/video.cpp +++ b/engines/gob/video.cpp @@ -84,6 +84,10 @@ uint16 Font::getCharCount() const { return _endItem - _startItem + 1; } +bool Font::hasChar(uint8 c) const { + return (c >= _startItem) && (c <= _endItem); +} + bool Font::isMonospaced() const { return _charWidths == 0; } diff --git a/engines/gob/video.h b/engines/gob/video.h index a8c1480a6b..122c1e47d5 100644 --- a/engines/gob/video.h +++ b/engines/gob/video.h @@ -41,6 +41,8 @@ public: uint8 getCharWidth () const; uint8 getCharHeight() const; + bool hasChar(uint8 c) const; + bool isMonospaced() const; void drawLetter(Surface &surf, uint8 c, uint16 x, uint16 y, |