From 051eae46390fe7289365f68ea2321c098d60748a Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 17 Aug 2016 11:44:16 -0500 Subject: SCI32: Increase maximum line width for graphics Torin renders pics that are wider than 1024px; SCI3 bumps the maximum line width to 4k. --- engines/sci/graphics/celobj32.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/sci/graphics/celobj32.cpp') 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 -int16 SCALER_Scale::_valuesX[1024]; +int16 SCALER_Scale::_valuesX[4096]; template -int16 SCALER_Scale::_valuesY[1024]; +int16 SCALER_Scale::_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; -- cgit v1.2.3