diff options
author | Colin Snover | 2017-09-15 12:05:58 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-15 12:08:31 -0500 |
commit | b8af2ca66f3f565ad0d86761d9eac3b69d68c52d (patch) | |
tree | 12ff0b9c06e120aa58d858eefb543311c46c72b3 /engines/sci/graphics | |
parent | 3ed7ef57aec38a39d7887a520c8eaf510f19804e (diff) | |
download | scummvm-rg350-b8af2ca66f3f565ad0d86761d9eac3b69d68c52d.tar.gz scummvm-rg350-b8af2ca66f3f565ad0d86761d9eac3b69d68c52d.tar.bz2 scummvm-rg350-b8af2ca66f3f565ad0d86761d9eac3b69d68c52d.zip |
SCI32: Fix clipping of inventory items in Phant2
This fixes overlapping of the left arrow in all cases, but the
scroll delta and initial offset of inventory items will only be
fixed in new games because the affected objects are global objects
whose bad properties get persisted into save games.
Fixes Trac#10037.
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/celobj32.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/sci/graphics/celobj32.cpp b/engines/sci/graphics/celobj32.cpp index 687ecd64f3..a49690a703 100644 --- a/engines/sci/graphics/celobj32.cpp +++ b/engines/sci/graphics/celobj32.cpp @@ -1003,9 +1003,6 @@ CelObjView::CelObjView(const GuiResourceId viewId, const int16 loopNo, const int _height = celHeader.getUint16SEAt(2); assert(_width <= kCelScalerTableSize && _height <= kCelScalerTableSize); _origin.x = _width / 2 - celHeader.getInt16SEAt(4); - if (g_sci->_features->usesAlternateSelectors() && _mirrorX) { - _origin.x = _width - _origin.x - 1; - } _origin.y = _height - celHeader.getInt16SEAt(6) - 1; _skipColor = celHeader[8]; _compressionType = (CelCompressionType)celHeader[9]; |