summaryrefslogtreecommitdiff
path: root/gtk/theme-bits
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2002-02-19 19:59:37 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2002-02-19 19:59:37 +0000
commitfde8cad894c8222322fba2a3a5f58d7ed3e4e341 (patch)
treedc884d3db526bfbe3c73fe8b6182b6bad73cd86e /gtk/theme-bits
parent6dea3cae13ddf8a5e882fe8296678bb7be2a94d8 (diff)
downloadgtk+-fde8cad894c8222322fba2a3a5f58d7ed3e4e341.tar.gz
fix bug (skipping all black pixels).
Tue Feb 19 20:56:32 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/theme-bits/decompose-bits.c (do_part): fix bug (skipping all black pixels).
Diffstat (limited to 'gtk/theme-bits')
-rw-r--r--gtk/theme-bits/decompose-bits.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/theme-bits/decompose-bits.c b/gtk/theme-bits/decompose-bits.c
index 0a49bda11a..9de556acb9 100644
--- a/gtk/theme-bits/decompose-bits.c
+++ b/gtk/theme-bits/decompose-bits.c
@@ -58,9 +58,9 @@ do_part (GdkPixbuf *pixbuf,
while (n--)
{
- if ((part1_index > 0 && memcmp (p, color1, n_channels) == 0) ||
- (part2_index > 0 && memcmp (p, color2, n_channels) == 0) ||
- (part3_index > 0 && memcmp (p, color3, n_channels) == 0))
+ if ((part1_index >= 0 && memcmp (p, color1, n_channels) == 0) ||
+ (part2_index >= 0 && memcmp (p, color2, n_channels) == 0) ||
+ (part3_index >= 0 && memcmp (p, color3, n_channels) == 0))
byte |= bit;
if (bit == 0x80)