aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-02 09:09:22 +0000
committerMartin Kiewitz2010-07-02 09:09:22 +0000
commitb8ff75047bdc9dfa591c66ceab6f421cb92ff89f (patch)
tree5abf93f712c6e33f32549e674ef21d897554f889
parent91a414dbc9f712484de2e5dac66ae3dafe467e6a (diff)
downloadscummvm-rg350-b8ff75047bdc9dfa591c66ceab6f421cb92ff89f.tar.gz
scummvm-rg350-b8ff75047bdc9dfa591c66ceab6f421cb92ff89f.tar.bz2
scummvm-rg350-b8ff75047bdc9dfa591c66ceab6f421cb92ff89f.zip
SCI: changing adjusting of upscaled hires box coordinates
svn-id: r50593
-rw-r--r--engines/sci/graphics/paint16.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp
index 48967c6888..90b05c68a6 100644
--- a/engines/sci/graphics/paint16.cpp
+++ b/engines/sci/graphics/paint16.cpp
@@ -317,11 +317,12 @@ reg_t GfxPaint16::bitsSave(const Common::Rect &rect, byte screenMask) {
return NULL_REG;
if (screenMask == GFX_SCREEN_MASK_DISPLAY) {
+ // The coordinates we are given are actually up-to-including right/bottom - we extend accordingly
+ workerRect.bottom++;
+ workerRect.right++;
// Adjust rect to upscaled hires, but dont adjust according to port
_screen->adjustToUpscaledCoordinates(workerRect.top, workerRect.left);
_screen->adjustToUpscaledCoordinates(workerRect.bottom, workerRect.right);
- workerRect.bottom++;
- workerRect.right++;
} else {
_ports->offsetRect(workerRect);
}