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)
This commit is contained in:
Martin Kiewitz 2016-02-06 23:29:31 +01:00
parent d1ac57fa49
commit 1b7ed6a7cc

View file

@ -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) {