diff options
author | Filippos Karapetis | 2008-09-15 14:17:51 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-09-15 14:17:51 +0000 |
commit | 7cac97629a7b7744fcc62905a46b1a1ca99452cb (patch) | |
tree | c85ebb3b268c712f9ad9aa9c4f82c738676c9c8d | |
parent | 8a9dd3345e0f83afc16dc341a882fe088561d221 (diff) | |
download | scummvm-rg350-7cac97629a7b7744fcc62905a46b1a1ca99452cb.tar.gz scummvm-rg350-7cac97629a7b7744fcc62905a46b1a1ca99452cb.tar.bz2 scummvm-rg350-7cac97629a7b7744fcc62905a46b1a1ca99452cb.zip |
Remove a workaround in textFitsCentered(). The blind man's dialog is a bit better placed now
svn-id: r34560
-rw-r--r-- | engines/drascula/graphics.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index b1bf7f8049..0ffa62282b 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -304,9 +304,7 @@ void DrasculaEngine::print_abc_opc(const char *said, int screenY, int game) { bool DrasculaEngine::textFitsCentered(char *text, int x) { int len = strlen(text); int x1 = CLIP<int>(x - len * CHAR_WIDTH / 2, 60, 255); - // Print up to pixel 280, not 320, to have 40 pixels space to the right - // This resembles the way that the original printed text on screen - return (x1 + len * CHAR_WIDTH) <= 280; + return (x1 + len * CHAR_WIDTH) <= 320; } void DrasculaEngine::centerText(const char *message, int textX, int textY) { |