From 1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 6 Feb 2016 23:29:31 +0100 Subject: [PATCH] SCI: Fix bits size calculation for upscaled hires in screen class (calculating how many bytes are needed to save a specified area of various screen maps) --- engines/sci/graphics/screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index ea65d118ea5..e77c74bb2a4 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -624,7 +624,7 @@ int GfxScreen::bitsGetDataSize(Common::Rect rect, byte mask) { } else { int rectHeight = _upscaledHeightMapping[rect.bottom] - _upscaledHeightMapping[rect.top]; int rectWidth = _upscaledWidthMapping[rect.right] - _upscaledWidthMapping[rect.left]; - byteCount += rectHeight * rect.width() * rectWidth; // _displayScreen (upscaled hires) + byteCount += rectHeight * rectWidth; // _displayScreen (upscaled hires) } } if (mask & GFX_SCREEN_MASK_PRIORITY) {