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:
parent
d1ac57fa49
commit
1b7ed6a7cc
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue