From 0c708ddcf7087967bcf7bc791c55c473b7278e6e Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 28 May 2016 10:12:54 -0500 Subject: SCI32: Simplify default text width equation --- engines/sci/graphics/text32.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'engines/sci/graphics/text32.cpp') diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index e1b522af68..d1c223d5d5 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -545,12 +545,7 @@ Common::Rect GfxText32::getTextSize(const Common::String &text, int16 maxWidth, if (maxWidth >= 0) { if (maxWidth == 0) { - // TODO: This was hardcoded to 192, but guessing - // that it was originally 60% of the scriptWidth - // before the compiler took over. - // Verify this by looking at a game that uses a - // scriptWidth other than 320, like LSL7 - maxWidth = (int16)(_scaledWidth * (scriptWidth * 0.6) / scriptWidth); + maxWidth = _scaledWidth * 3 / 5; } result.right = maxWidth; -- cgit v1.2.3