Fix failure to notice the use of a GIF palette index greater or equal

to 128 for transparency.
This commit is contained in:
Alex Villacís Lasso 2005-03-29 18:57:15 +00:00 committed by Alexandre Julliard
parent 13175a3fbc
commit 2612f61fff
1 changed files with 1 additions and 1 deletions

View File

@ -1071,7 +1071,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
eb = si->ExtensionBlocks + i;
if (eb->Function == 0xF9 && eb->ByteCount == 4) {
if ((eb->Bytes[0] & 1) == 1) {
transparent = eb->Bytes[3];
transparent = (unsigned char)eb->Bytes[3];
}
}
}