aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2016-08-17 11:44:16 -0500
committerColin Snover2016-08-19 15:23:10 -0500
commit051eae46390fe7289365f68ea2321c098d60748a (patch)
treed6a518321250fe666d15bcdf739a93b23c94c06d
parente55b7745845e39ba385bff07d8dc45fa7317a4cb (diff)
downloadscummvm-rg350-051eae46390fe7289365f68ea2321c098d60748a.tar.gz
scummvm-rg350-051eae46390fe7289365f68ea2321c098d60748a.tar.bz2
scummvm-rg350-051eae46390fe7289365f68ea2321c098d60748a.zip
SCI32: Increase maximum line width for graphics
Torin renders pics that are wider than 1024px; SCI3 bumps the maximum line width to 4k.
-rw-r--r--engines/sci/graphics/celobj32.cpp10
-rw-r--r--engines/sci/graphics/celobj32.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/graphics/celobj32.cpp b/engines/sci/graphics/celobj32.cpp
index c5b1133a5f..d053fa2eef 100644
--- a/engines/sci/graphics/celobj32.cpp
+++ b/engines/sci/graphics/celobj32.cpp
@@ -164,8 +164,8 @@ struct SCALER_Scale {
const byte *_row;
READER _reader;
int16 _x;
- static int16 _valuesX[1024];
- static int16 _valuesY[1024];
+ static int16 _valuesX[4096];
+ static int16 _valuesY[4096];
SCALER_Scale(const CelObj &celObj, const Common::Rect &targetRect, const Common::Point &scaledPosition, const Ratio scaleX, const Ratio scaleY) :
_row(nullptr),
@@ -249,9 +249,9 @@ struct SCALER_Scale {
};
template<bool FLIP, typename READER>
-int16 SCALER_Scale<FLIP, READER>::_valuesX[1024];
+int16 SCALER_Scale<FLIP, READER>::_valuesX[4096];
template<bool FLIP, typename READER>
-int16 SCALER_Scale<FLIP, READER>::_valuesY[1024];
+int16 SCALER_Scale<FLIP, READER>::_valuesY[4096];
#pragma mark -
#pragma mark CelObj - Resource readers
@@ -283,7 +283,7 @@ public:
struct READER_Compressed {
private:
const byte *const _resource;
- byte _buffer[1024];
+ byte _buffer[4096];
uint32 _controlOffset;
uint32 _dataOffset;
uint32 _uncompressedDataOffset;
diff --git a/engines/sci/graphics/celobj32.h b/engines/sci/graphics/celobj32.h
index e58fb50c98..21e86d03e0 100644
--- a/engines/sci/graphics/celobj32.h
+++ b/engines/sci/graphics/celobj32.h
@@ -147,7 +147,7 @@ struct CelScalerTable {
* the correct column to read from the source bitmap
* when drawing a scaled version of the source bitmap.
*/
- int valuesX[1024];
+ int valuesX[4096];
/**
* The ratio used to generate the x-values.
@@ -159,7 +159,7 @@ struct CelScalerTable {
* the correct row to read from a source bitmap when
* drawing a scaled version of the source bitmap.
*/
- int valuesY[1024];
+ int valuesY[4096];
/**
* The ratio used to generate the y-values.