diff options
author | Colin Snover | 2016-02-18 10:59:30 -0600 |
---|---|---|
committer | Colin Snover | 2016-02-18 13:18:03 -0600 |
commit | 5a1fa5efa1459d7859432b21749587ef67f002d5 (patch) | |
tree | 80b5a114d37baf4b5a3d91868b2fc180ea9ee33a /engines/sci/graphics/celobj32.cpp | |
parent | 766cf6cee7edbc3f6fa22a50381391725f70cabc (diff) | |
download | scummvm-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/sci/graphics/celobj32.cpp')
-rw-r--r-- | engines/sci/graphics/celobj32.cpp | 2 |
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; } } |