[Scummvm-cvs-logs] scummvm master -> 1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5
m-kiewitz
m_kiewitz at users.sourceforge.net
Sat Feb 6 23:30:44 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1b7ed6a7cc SCI: Fix bits size calculation for upscaled hires
Commit: 1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5
https://github.com/scummvm/scummvm/commit/1b7ed6a7cc42bdaca0b21ff97ca3fd1307e182c5
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-06T23:29:57+01:00
Commit Message:
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)
Changed paths:
engines/sci/graphics/screen.cpp
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index ea65d11..e77c74b 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) {
More information about the Scummvm-git-logs
mailing list