diff options
author | Nipun Garg | 2019-06-23 05:47:45 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:56 +0200 |
commit | 94747f0f76b509a1d3c00f5bc09315486d8840cf (patch) | |
tree | f5812b956f8125b948d11fa0f6a847970c5ef5ec | |
parent | e7ddd0b52704fd904f58d9266a8081309873b6ce (diff) | |
download | scummvm-rg350-94747f0f76b509a1d3c00f5bc09315486d8840cf.tar.gz scummvm-rg350-94747f0f76b509a1d3c00f5bc09315486d8840cf.tar.bz2 scummvm-rg350-94747f0f76b509a1d3c00f5bc09315486d8840cf.zip |
HDB: Add getter-setter for Text Edges
-rw-r--r-- | engines/hdb/draw-manager.cpp | 14 | ||||
-rw-r--r-- | engines/hdb/draw-manager.h | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 66382966e4..1f8802876e 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -395,6 +395,20 @@ int DrawMan::animateTile(int tileIndex) { return _tLookupArray[tileIndex].animIndex; } +void DrawMan::setTextEdges(int left, int right, int top, int bottom) { + _eLeft = left; + _eRight = right; + _eTop = top; + _eBottom = bottom; +} + +void DrawMan::getTextEdges(int *left, int *right, int *top, int *bottom) { + *left = _eLeft; + *right = _eRight; + *top = _eTop; + *bottom = _eBottom; +} + void DrawMan::setKernLead(int kern, int lead) { _fontHeader.kerning = kern; _fontHeader.leading = lead; diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h index 4790d03eeb..9bc2204fa6 100644 --- a/engines/hdb/draw-manager.h +++ b/engines/hdb/draw-manager.h @@ -117,6 +117,8 @@ public: // Font Functions + void setTextEdges(int left, int right, int top, int bottom); + void getTextEdges(int *left, int *right, int *top, int *bottom); void setKernLead(int kern, int lead); void getKernLead(int *kern, int *lead); void setCursor(int x, int y); |