aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/draw-manager.cpp14
-rw-r--r--engines/hdb/draw-manager.h2
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);