mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=795812 shape out translucent windows where alpha < 1/2 r=roc
--HG-- extra : rebase_source : 86d6d748e7e87ab527b8ee88e3dee1abb16133be
This commit is contained in:
parent
0292baea13
commit
42ce6714fc
@ -4229,7 +4229,7 @@ ChangedMaskBits(gchar* aMaskBits, int32_t aMaskWidth, int32_t aMaskHeight,
|
||||
gchar* maskBytes = aMaskBits + y*maskBytesPerRow;
|
||||
uint8_t* alphas = aAlphas;
|
||||
for (x = aRect.x; x < xMax; x++) {
|
||||
bool newBit = *alphas > 0;
|
||||
bool newBit = *alphas > 0x7f;
|
||||
alphas++;
|
||||
|
||||
gchar maskByte = maskBytes[x >> 3];
|
||||
@ -4255,7 +4255,7 @@ void UpdateMaskBits(gchar* aMaskBits, int32_t aMaskWidth, int32_t aMaskHeight,
|
||||
gchar* maskBytes = aMaskBits + y*maskBytesPerRow;
|
||||
uint8_t* alphas = aAlphas;
|
||||
for (x = aRect.x; x < xMax; x++) {
|
||||
bool newBit = *alphas > 0;
|
||||
bool newBit = *alphas > 0x7f;
|
||||
alphas++;
|
||||
|
||||
gchar mask = 1 << (x & 7);
|
||||
|
Loading…
Reference in New Issue
Block a user