aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-04 18:19:07 +0100
committerEugene Sandulenko2016-02-14 17:13:01 +0100
commit5ac25816456b24baae06f84708262397092efaea (patch)
tree6a89004a23410a7bf2b115038ab64b6f17d8bc77
parent40cdf028b3f6cafe02a44b568825f9de6eb4de0e (diff)
downloadscummvm-rg350-5ac25816456b24baae06f84708262397092efaea.tar.gz
scummvm-rg350-5ac25816456b24baae06f84708262397092efaea.tar.bz2
scummvm-rg350-5ac25816456b24baae06f84708262397092efaea.zip
WAGE: Fix text coordinate calculation
-rw-r--r--engines/wage/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index f9c5d128d5..2ea8e82912 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -713,7 +713,7 @@ int Gui::calcTextX(int x, int textLine) {
const Graphics::Font *font = getConsoleFont();
Common::String str = _lines[textLine];
- x -= _consoleTextArea.left + kConWOverlap + kConWPadding;
+ x -= _consoleTextArea.left;
for (int i = str.size(); i >= 0; i--) {
if (font->getStringWidth(str) < x) {
@@ -727,7 +727,7 @@ int Gui::calcTextX(int x, int textLine) {
}
int Gui::calcTextY(int y) {
- y -= _consoleTextArea.top + kConHOverlap + kConHPadding;
+ y -= _consoleTextArea.top;
if (y < 0)
y = 0;