aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/charset.cpp5
-rw-r--r--scumm/charset.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index 91b11c1746..b1efd42172 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -1604,6 +1604,11 @@ void CharsetRendererNut::setCurID(byte id) {
assert(_current);
}
+int CharsetRendererNut::getCharHeight(byte chr) {
+ assert(_current);
+ return _current->getCharHeight(chr);
+}
+
int CharsetRendererNut::getCharWidth(byte chr) {
assert(_current);
return _current->getCharWidth(chr);
diff --git a/scumm/charset.h b/scumm/charset.h
index 04650ab86f..c231f0c29c 100644
--- a/scumm/charset.h
+++ b/scumm/charset.h
@@ -105,6 +105,7 @@ public:
int getCurID() { return _curId; }
virtual int getFontHeight() = 0;
+ virtual int getCharHeight(byte chr) { return getFontHeight(); }
virtual int getCharWidth(byte chr) = 0;
virtual void setColor(byte color) { _color = color; translateColor(); }
@@ -192,6 +193,7 @@ public:
void setCurID(byte id);
int getFontHeight();
+ int getCharHeight(byte chr);
int getCharWidth(byte chr);
};