aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-23 05:46:36 +0530
committerEugene Sandulenko2019-09-03 17:16:56 +0200
commite7ddd0b52704fd904f58d9266a8081309873b6ce (patch)
treebaf0ffd1b51195f5980f4659b302e584775ee95f
parent954d1c649c99e19a020de9ed764b88a7ced2c25d (diff)
downloadscummvm-rg350-e7ddd0b52704fd904f58d9266a8081309873b6ce.tar.gz
scummvm-rg350-e7ddd0b52704fd904f58d9266a8081309873b6ce.tar.bz2
scummvm-rg350-e7ddd0b52704fd904f58d9266a8081309873b6ce.zip
HDB: Add getter-setter for Kerning and Leading
-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);