mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +00:00
SCI32: Fix bad reads of mirrored cels
This commit is contained in:
1 parent
0012390f2a
commit
e5b30fb9af
1 file changed
+2
-2
@@ -109,8 +109,8 @@ struct SCALER_NoScale {
|
||||
const int16 _lastIndex;
|
||||
|
||||
SCALER_NoScale(const CelObj &celObj, const int16 maxWidth) :
|
||||
_reader(celObj, maxWidth),
|
||||
_lastIndex(maxWidth - 1) {}
|
||||
_reader(celObj, FLIP ? celObj._width : maxWidth),
|
||||
_lastIndex(celObj._width - 1) {}
|
||||
|
||||
inline void setSource(const int16 x, const int16 y) {
|
||||
_row = _reader.getRow(y);
|
||||
|
||||
Reference in new issue
Block a user