From 6864d09d68b8e31f94ac802dd791a188523322d9 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Sun, 27 Jun 2010 13:15:01 +0000 Subject: SCI: Fix for large views in GK2. At least it does not segfault now. svn-id: r50376 --- engines/sci/graphics/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci') 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; -- cgit v1.2.3