aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-06 23:29:31 +0100
committerMartin Kiewitz2016-02-06 23:29:57 +0100
commit1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5 (patch)
treead0a42a07e1694e78abfd1d10cd154d5eabeceb9 /engines
parentd1ac57fa492d9b682582312c013069c7b1df896d (diff)
downloadscummvm-rg350-1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5.tar.gz
scummvm-rg350-1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5.tar.bz2
scummvm-rg350-1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5.zip
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)
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index ea65d118ea..e77c74bb2a 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) {