aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukaslw2014-07-28 00:02:22 +0200
committerlukaslw2014-07-28 00:02:22 +0200
commit822d1786b0c625bc9d1be694132c0ffc480dec60 (patch)
treedd40d0fb83eb6202440892402edaf84d1ba265aa
parent951239bfd8c25c1bab04f4bec527ed534572058c (diff)
downloadscummvm-rg350-822d1786b0c625bc9d1be694132c0ffc480dec60.tar.gz
scummvm-rg350-822d1786b0c625bc9d1be694132c0ffc480dec60.tar.bz2
scummvm-rg350-822d1786b0c625bc9d1be694132c0ffc480dec60.zip
PRINCE: showTexts() fix
-rw-r--r--engines/prince/prince.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index 3ab9b45209..89fb9e334e 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -1210,10 +1210,10 @@ void PrinceEngine::showTexts(Graphics::Surface *screen) {
int drawX = x - getTextWidth(lines[i].c_str()) / 2;
int drawY = y - 10 - (lines.size() - i) * (_font->getFontHeight() - textSkip);
if (drawX < 0) {
- x = 0;
+ drawX = 0;
}
if (drawY < 0) {
- y = 0;
+ drawY = 0;
}
_font->drawString(screen, lines[i], drawX, drawY, screen->w, text._color);
}