diff options
author | Nipun Garg | 2019-06-23 05:46:36 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:56 +0200 |
commit | e7ddd0b52704fd904f58d9266a8081309873b6ce (patch) | |
tree | baf0ffd1b51195f5980f4659b302e584775ee95f | |
parent | 954d1c649c99e19a020de9ed764b88a7ced2c25d (diff) | |
download | scummvm-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.cpp | 10 | ||||
-rw-r--r-- | engines/hdb/draw-manager.h | 2 |
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); |