make transparent pixels transparents again

apparently boolean logic in hard...

Change-Id: Ie70401fe12e0fa00b0b8c7cc475c1438cdbbf531
This commit is contained in:
Mathias Agopian 2013-07-26 15:31:39 -07:00
parent 5773d3f5b2
commit dd533712f8
1 changed files with 2 additions and 2 deletions

View File

@ -584,10 +584,10 @@ bool Layer::getOpacityForFormat(uint32_t format) {
case HAL_PIXEL_FORMAT_BGRA_8888:
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
return true;
return false;
}
// in all other case, we have no blending (also for unknown formats)
return false;
return true;
}
// ----------------------------------------------------------------------------