aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-09-15 14:17:51 +0000
committerFilippos Karapetis2008-09-15 14:17:51 +0000
commit7cac97629a7b7744fcc62905a46b1a1ca99452cb (patch)
treec85ebb3b268c712f9ad9aa9c4f82c738676c9c8d
parent8a9dd3345e0f83afc16dc341a882fe088561d221 (diff)
downloadscummvm-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.cpp4
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) {