diff options
author | Martin Kiewitz | 2010-05-14 11:49:09 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-05-14 11:49:09 +0000 |
commit | 94f1af2b4482c9447d05b95bdef058b5d085dc2a (patch) | |
tree | f142c0d55f514835c7d583447c1d26d9c259c35f /engines/sci | |
parent | c083ce287900f90b0a90dc461add02891b2d0f48 (diff) | |
download | scummvm-rg350-94f1af2b4482c9447d05b95bdef058b5d085dc2a.tar.gz scummvm-rg350-94f1af2b4482c9447d05b95bdef058b5d085dc2a.tar.bz2 scummvm-rg350-94f1af2b4482c9447d05b95bdef058b5d085dc2a.zip |
SCI: if no priority is set (=255) and a cel is embedded in picture vector data -> set priority to 0, fixes kq5/amiga - first scene not showing
svn-id: r49029
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/picture.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/picture.cpp b/engines/sci/graphics/picture.cpp index 447ab63369..a464a7b92f 100644 --- a/engines/sci/graphics/picture.cpp +++ b/engines/sci/graphics/picture.cpp @@ -607,6 +607,8 @@ void GfxPicture::drawVectorData(byte *data, int dataSize) { vectorGetAbsCoordsNoMirror(data, curPos, x, y); size = READ_LE_UINT16(data + curPos); curPos += 2; _priority = pic_priority; // set global priority so the cel gets drawn using current priority as well + if (pic_priority == 255) + _priority = 0; // if priority not set, use priority 0 drawCelData(data, _resource->size, curPos, curPos + 8, 0, x, y, false); curPos += size; break; |