aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorLars Skovlund2010-06-27 13:15:01 +0000
committerLars Skovlund2010-06-27 13:15:01 +0000
commit6864d09d68b8e31f94ac802dd791a188523322d9 (patch)
tree1c7660ce3a3077298cf48ece2e3946ab973f63b6 /engines/sci/graphics
parent25ca058fa841f29b0e2999f446b9d6f8198d78e5 (diff)
downloadscummvm-rg350-6864d09d68b8e31f94ac802dd791a188523322d9.tar.gz
scummvm-rg350-6864d09d68b8e31f94ac802dd791a188523322d9.tar.bz2
scummvm-rg350-6864d09d68b8e31f94ac802dd791a188523322d9.zip
SCI: Fix for large views in GK2. At least it does not segfault now.
svn-id: r50376
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/view.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp
index f00d6a652d..5436e426ff 100644
--- a/engines/sci/graphics/view.cpp
+++ b/engines/sci/graphics/view.cpp
@@ -579,8 +579,8 @@ void GfxView::drawScaled(Common::Rect rect, Common::Rect clipRect, Common::Rect
byte color;
byte drawMask = priority == 255 ? GFX_SCREEN_MASK_VISUAL : GFX_SCREEN_MASK_VISUAL|GFX_SCREEN_MASK_PRIORITY;
int x, y;
- uint16 scalingX[320];
- uint16 scalingY[200];
+ uint16 scalingX[640];
+ uint16 scalingY[480];
int16 scaledWidth, scaledHeight;
int16 pixelNo, scaledPixel, scaledPixelNo, prevScaledPixelNo;
uint16 offsetX, offsetY;