- Fix leftover negative sign in height parameter for transparent
bitmap. - Properly announce whether bitmap is transparent in get_Attributes. - GIF transparency is now palette-index based, instead of RGB based. - Keep original bitmap and XOR mask separate, so that get_Handle returns original bitmap.
This commit is contained in:
parent
d3b5018275
commit
61761e2278
|
@ -1177,7 +1177,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
|
||||||
|
|
||||||
This->hbmMask = CreateBitmap(bmi->bmiHeader.biWidth, bmi->bmiHeader.biHeight, 1, 1, NULL);
|
This->hbmMask = CreateBitmap(bmi->bmiHeader.biWidth, bmi->bmiHeader.biHeight, 1, 1, NULL);
|
||||||
|
|
||||||
hOldbitmap = SelectObject(hdc,This->desc.u.bmp.hbitmap);
|
hOldbitmap = SelectObject(hdc,This->desc.u.bmp.hbitmap);
|
||||||
hOldbitmapmask = SelectObject(hdcMask, This->hbmMask);
|
hOldbitmapmask = SelectObject(hdcMask, This->hbmMask);
|
||||||
SetBkColor(hdc, This->rgbTrans);
|
SetBkColor(hdc, This->rgbTrans);
|
||||||
BitBlt(hdcMask, 0, 0, bmi->bmiHeader.biWidth, bmi->bmiHeader.biHeight, hdc, 0, 0, SRCCOPY);
|
BitBlt(hdcMask, 0, 0, bmi->bmiHeader.biWidth, bmi->bmiHeader.biHeight, hdc, 0, 0, SRCCOPY);
|
||||||
|
|
Loading…
Reference in New Issue