added (broken) cursor support for V8; enabled bomp drawing
svn-id: r6113
This commit is contained in:
parent
bf41dbdba3
commit
1b0963dd76
6 changed files with 106 additions and 27 deletions
|
@ -3085,12 +3085,14 @@ void Scumm::useBompCursor(byte *im, int width, int height)
|
|||
|
||||
size = width * height;
|
||||
if (size > sizeof(_grabbedCursor))
|
||||
error("useBompCursor: cursor too big");
|
||||
error("useBompCursor: cursor too big (%d)", size);
|
||||
|
||||
_cursor.width = width;
|
||||
_cursor.height = height;
|
||||
_cursor.animate = 0;
|
||||
|
||||
// FIXME - why exactly the +10 ? Is that to account for block headers or something?
|
||||
// Should be documented and verified that this is appropriate for V8 bomps, or not.
|
||||
decompressBomp(_grabbedCursor, im + 10, width, height);
|
||||
|
||||
updateCursor();
|
||||
|
@ -3312,6 +3314,8 @@ void Scumm::decompressBomp(byte *dst, byte *src, int w, int h)
|
|||
int len, num;
|
||||
byte code, color;
|
||||
|
||||
|
||||
// FIXME - why this +8? To skip some kind of header? Is this right for V8 ?
|
||||
src += 8;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue