aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/draw-manager.cpp10
-rw-r--r--engines/hdb/draw-manager.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index 534ca966e8..66382966e4 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -395,6 +395,16 @@ int DrawMan::animateTile(int tileIndex) {
return _tLookupArray[tileIndex].animIndex;
}
+void DrawMan::setKernLead(int kern, int lead) {
+ _fontHeader.kerning = kern;
+ _fontHeader.leading = lead;
+}
+
+void DrawMan::getKernLead(int *kern, int *lead) {
+ *kern = _fontHeader.kerning;
+ *lead = _fontHeader.leading;
+}
+
void DrawMan::setCursor(int x, int y) {
_cursorX = x;
_cursorY = y;
diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h
index 350f8655e4..4790d03eeb 100644
--- a/engines/hdb/draw-manager.h
+++ b/engines/hdb/draw-manager.h
@@ -117,6 +117,8 @@ public:
// Font Functions
+ void setKernLead(int kern, int lead);
+ void getKernLead(int *kern, int *lead);
void setCursor(int x, int y);
void getCursor(int *x, int *y);