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