diff --git a/ChangeLog b/ChangeLog index ed2483067..e36c52ea7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-01 Matthew Allum + + * clutter/clutter-color.c: (clutter_color_from_pixel): + Fix typo in alpha channel extraction (#434) + 2007-08-01 Emmanuele Bassi * clutter/clutter-actor.[ch]: Add floating-point variant of the diff --git a/clutter/clutter-color.c b/clutter/clutter-color.c index 7f2564d9f..2b2f353d7 100644 --- a/clutter/clutter-color.c +++ b/clutter/clutter-color.c @@ -447,7 +447,7 @@ clutter_color_from_pixel (ClutterColor *dest, dest->red = pixel >> 24; dest->green = (pixel >> 16) & 0xff; dest->blue = (pixel >> 8) & 0xff; - dest->alpha = pixel % 0xff; + dest->alpha = pixel & 0xff; } /**