diff options
author | Martin Kiewitz | 2010-04-26 21:01:05 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-26 21:01:05 +0000 |
commit | 7c26675ec11018f4efa72607337dd6a9eae4dac1 (patch) | |
tree | 171dd912d38f23e45000d20bf1e2ba3730ede7ab /engines/sci | |
parent | 38ad443165f7a7fae8a894fe3bb978e4002c6bdc (diff) | |
download | scummvm-rg350-7c26675ec11018f4efa72607337dd6a9eae4dac1.tar.gz scummvm-rg350-7c26675ec11018f4efa72607337dd6a9eae4dac1.tar.bz2 scummvm-rg350-7c26675ec11018f4efa72607337dd6a9eae4dac1.zip |
SCI: fix regression from r48720, upscaled games that use view cursors crashed
svn-id: r48810
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/cursor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |