b=795812 shape out translucent windows where alpha < 1/2 r=roc

--HG--
extra : rebase_source : 86d6d748e7e87ab527b8ee88e3dee1abb16133be
This commit is contained in:
Karl Tomlinson 2012-10-03 11:35:28 +13:00
parent 0292baea13
commit 42ce6714fc

View File

@ -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);