aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-07 20:36:00 +0000
committerMartin Kiewitz2010-01-07 20:36:00 +0000
commit7a636ead9d1ff8900815fa95a4f74d6665c8c59c (patch)
treeeeb7ca4801fff08e6219dc21af68ecb39870aa91 /engines
parent140b22a37400abb65a999c46b6e5145af0bcf364 (diff)
downloadscummvm-rg350-7a636ead9d1ff8900815fa95a4f74d6665c8c59c.tar.gz
scummvm-rg350-7a636ead9d1ff8900815fa95a4f74d6665c8c59c.tar.bz2
scummvm-rg350-7a636ead9d1ff8900815fa95a4f74d6665c8c59c.zip
SCI: sierra sci doesnt seem to adjust according to port on upscaledhires_save_box, this (and all the other fixes) finally fixes coordinates for kq6 hires cel placement
svn-id: r47141
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/gfx.cpp b/engines/sci/graphics/gfx.cpp
index 5f4e6a5b02..d2196d5140 100644
--- a/engines/sci/graphics/gfx.cpp
+++ b/engines/sci/graphics/gfx.cpp
@@ -275,12 +275,12 @@ reg_t Gfx::BitsSave(const Common::Rect &rect, byte screenMask) {
if (workerRect.isEmpty()) // nothing to save
return NULL_REG;
- OffsetRect(workerRect);
-
if (screenMask == SCI_SCREEN_MASK_DISPLAY) {
- // Adjust rect to upscaled hires
+ // Adjust rect to upscaled hires, but dont adjust according to port
workerRect.top *= 2; workerRect.bottom *= 2; workerRect.bottom++;
workerRect.left *= 2; workerRect.right *= 2; workerRect.right++;
+ } else {
+ OffsetRect(workerRect);
}
// now actually ask _screen how much space it will need for saving