From 7cac97629a7b7744fcc62905a46b1a1ca99452cb Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 15 Sep 2008 14:17:51 +0000 Subject: Remove a workaround in textFitsCentered(). The blind man's dialog is a bit better placed now svn-id: r34560 --- engines/drascula/graphics.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/drascula') 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(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) { -- cgit v1.2.3