Skip to content

Commit

Permalink
PRINCE: showTexts() fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jul 27, 2014
1 parent 951239b commit 822d178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/prince/prince.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 822d178

Please sign in to comment.