From 7c26675ec11018f4efa72607337dd6a9eae4dac1 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 26 Apr 2010 21:01:05 +0000 Subject: SCI: fix regression from r48720, upscaled games that use view cursors crashed svn-id: r48810 --- engines/sci/graphics/cursor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp index 48607ada17..d0f8538955 100644 --- a/engines/sci/graphics/cursor.cpp +++ b/engines/sci/graphics/cursor.cpp @@ -182,6 +182,7 @@ void GfxCursor::kernelSetView(GuiResourceId viewNum, int loopNum, int celNum, Co return; } + celInfo->rawBitmap = cursorView->getBitmap(loopNum, celNum); if (_upscaledHires) { // Scale cursor by 2x - note: sierra didn't do this, but it looks much better width *= 2; @@ -191,7 +192,7 @@ void GfxCursor::kernelSetView(GuiResourceId viewNum, int loopNum, int celNum, Co cursorBitmap = new byte[width * height]; _screen->scale2x(celInfo->rawBitmap, cursorBitmap, celInfo->width, celInfo->height); } else { - cursorBitmap = cursorView->getBitmap(loopNum, celNum); + cursorBitmap = celInfo->rawBitmap; } CursorMan.replaceCursor(cursorBitmap, width, height, cursorHotspot->x, cursorHotspot->y, clearKey); -- cgit v1.2.3