From cd9971293d135b944bd03b299244b1145d9e6938 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 5 Oct 2013 11:44:15 +0100 Subject: [PATCH] Set unused channel to 0xff, so that rendering isn't broken in front ends that don't heed the OPACITY flag. --- desktop/treeview.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/desktop/treeview.c b/desktop/treeview.c index d69dae3aa..e42683826 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -3594,21 +3594,21 @@ static struct bitmap * treeview_generate_triangle_bitmap( *(pos++) = red_from_colour(colour4); *(pos++) = green_from_colour(colour4); *(pos++) = blue_from_colour(colour4); - *(pos++) = 0; + *(pos++) = 0xff; } *(pos++) = red_from_colour(colour3); *(pos++) = green_from_colour(colour3); *(pos++) = blue_from_colour(colour3); - *(pos++) = 0; + *(pos++) = 0xff; *(pos++) = red_from_colour(colour1); *(pos++) = green_from_colour(colour1); *(pos++) = blue_from_colour(colour1); - *(pos++) = 0; + *(pos++) = 0xff; for (x = y * 2 + 2; x < size ; x++) { *(pos++) = red_from_colour(colour0); *(pos++) = green_from_colour(colour0); *(pos++) = blue_from_colour(colour0); - *(pos++) = 0; + *(pos++) = 0xff; } } else if ((y == size / 2) && (size & 0x1)) { /* Middle row */ @@ -3616,33 +3616,33 @@ static struct bitmap * treeview_generate_triangle_bitmap( *(pos++) = red_from_colour(colour4); *(pos++) = green_from_colour(colour4); *(pos++) = blue_from_colour(colour4); - *(pos++) = 0; + *(pos++) = 0xff; } *(pos++) = red_from_colour(colour2); *(pos++) = green_from_colour(colour2); *(pos++) = blue_from_colour(colour2); - *(pos++) = 0; + *(pos++) = 0xff; } else { /* Bottom half */ for (x = 0; x < (size - y - 1) * 2; x++) { *(pos++) = red_from_colour(colour4); *(pos++) = green_from_colour(colour4); *(pos++) = blue_from_colour(colour4); - *(pos++) = 0; + *(pos++) = 0xff; } *(pos++) = red_from_colour(colour3); *(pos++) = green_from_colour(colour3); *(pos++) = blue_from_colour(colour3); - *(pos++) = 0; + *(pos++) = 0xff; *(pos++) = red_from_colour(colour1); *(pos++) = green_from_colour(colour1); *(pos++) = blue_from_colour(colour1); - *(pos++) = 0; + *(pos++) = 0xff; for (x = (size - y) * 2; x < size ; x++) { *(pos++) = red_from_colour(colour0); *(pos++) = green_from_colour(colour0); *(pos++) = blue_from_colour(colour0); - *(pos++) = 0; + *(pos++) = 0xff; } } @@ -3743,7 +3743,7 @@ static struct bitmap * treeview_generate_rotate_bitmap( *(pos++) = *(orig_pos++); *(pos++) = *(orig_pos++); *(pos++) = *(orig_pos); - *(pos++) = 0; + *(pos++) = 0xff; }