mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[UXTHEME] -Ignore the alpha channel so that TrasnparentBlt will be used when a bitmap has an alpha channel but no pixel has alpha transparency. CORE-13464
svn path=/trunk/; revision=75688
This commit is contained in:
parent
3ee6628aa5
commit
6f1a2f7dc9
1 changed files with 3 additions and 1 deletions
|
@ -875,7 +875,6 @@ static BOOL prepare_alpha (HBITMAP bmp, BOOL* hasAlpha)
|
|||
/* nothing to do */
|
||||
return TRUE;
|
||||
|
||||
*hasAlpha = TRUE;
|
||||
p = dib.dsBm.bmBits;
|
||||
n = dib.dsBmih.biHeight * dib.dsBmih.biWidth;
|
||||
/* AlphaBlend() wants premultiplied alpha, so do that now */
|
||||
|
@ -886,6 +885,9 @@ static BOOL prepare_alpha (HBITMAP bmp, BOOL* hasAlpha)
|
|||
p[1] = (p[1] * a) >> 8;
|
||||
p[2] = (p[2] * a) >> 8;
|
||||
p += 4;
|
||||
|
||||
if (a != 256)
|
||||
*hasAlpha = TRUE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue