From 6946efeb7f87d104ba5416935032c01033b7b805 Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Tue, 10 Jan 2006 02:43:30 +0000 Subject: Fixed regression bug #1400707, and reenabled mouselocking with a fix, to remove the mouse flickering under cutscenes and such. svn-id: r19962 --- kyra/sprites.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kyra/sprites.cpp') diff --git a/kyra/sprites.cpp b/kyra/sprites.cpp index 89bdc0cbb6..91563d2ee5 100644 --- a/kyra/sprites.cpp +++ b/kyra/sprites.cpp @@ -88,7 +88,7 @@ void Sprites::setupSceneAnims() { data += 4; _anims[i].y = READ_LE_UINT16(data); data += 4; - _anims[i].width = *(data)/8 + 1; + _anims[i].width = *(data) - 1; data += 4; _anims[i].height = *(data); data += 4; @@ -111,14 +111,14 @@ void Sprites::setupSceneAnims() { int bkgdHeight = _anims[i].height; if (_anims[i].width2) - bkgdWidth += (_anims[i].width2 >> 3) + 1; + bkgdWidth += _anims[i].width2 << 3; if (_anims[i].height2) bkgdHeight += _anims[i].height2; _anims[i].background = (uint8 *)malloc(_screen->getRectSize(bkgdWidth + 1, bkgdHeight)); memset(_anims[i].background, 0, _screen->getRectSize(bkgdWidth + 1, bkgdHeight)); - //_anims[i].background = (uint8 *)malloc(100*100); + assert(_anims[i].background); } } -- cgit v1.2.3