aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2016-02-18 10:59:30 -0600
committerColin Snover2016-02-18 13:18:03 -0600
commit5a1fa5efa1459d7859432b21749587ef67f002d5 (patch)
tree80b5a114d37baf4b5a3d91868b2fc180ea9ee33a /engines
parent766cf6cee7edbc3f6fa22a50381391725f70cabc (diff)
downloadscummvm-rg350-5a1fa5efa1459d7859432b21749587ef67f002d5.tar.gz
scummvm-rg350-5a1fa5efa1459d7859432b21749587ef67f002d5.tar.bz2
scummvm-rg350-5a1fa5efa1459d7859432b21749587ef67f002d5.zip
SCI: When rewriting lookup tables, also actually record what scale they are for
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/celobj32.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/celobj32.cpp b/engines/sci/graphics/celobj32.cpp
index e0f5668206..07bac742ba 100644
--- a/engines/sci/graphics/celobj32.cpp
+++ b/engines/sci/graphics/celobj32.cpp
@@ -51,11 +51,13 @@ void CelScaler::activateScaleTables(const Ratio &scaleX, const Ratio &scaleY) {
if (table.scaleX != scaleX) {
assert(screenWidth <= ARRAYSIZE(table.valuesX));
buildLookupTable(table.valuesX, scaleX, screenWidth);
+ table.scaleX = scaleX;
}
if (table.scaleY != scaleY) {
assert(screenHeight <= ARRAYSIZE(table.valuesY));
buildLookupTable(table.valuesY, scaleY, screenHeight);
+ table.scaleY = scaleY;
}
}