quick hack for alpha = 0 in B_OP_OVER, needs review, but for now, drawing all those B_CMAP8 bitmaps which have B_TRANSPARENT_MAGIC_CMAP8 pixels is working fine... IAW, icons look cool.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13473 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-07-06 01:43:49 +00:00
parent c1ea105142
commit 53a3e62c74

View File

@ -153,7 +153,8 @@ printf("DrawingModeOver::blend_vline()\n");
if (covers) {
// non-solid opacity
do {
if (*covers) {
// if (*covers) {
if (*covers && (colors->a & 0xff)) {
if (*covers == 255) {
ASSIGN_OVER(p[Order::R], p[Order::G], p[Order::B], p[Order::A],
colors->r, colors->g, colors->b);
@ -170,8 +171,10 @@ printf("DrawingModeOver::blend_vline()\n");
// solid full opcacity
if (cover == 255) {
do {
if (colors->a & 0xff) {
ASSIGN_OVER(p[Order::R], p[Order::G], p[Order::B], p[Order::A],
colors->r, colors->g, colors->b);
}
p += 4;
++colors;
} while(--len);