[fusion-commits] compiz mirror: Changes to 'master' (c0ab9d5d9ada8d5e5368911b7c523518a34d4134)

compiz at server.beryl-project.org compiz at server.beryl-project.org
Wed Jul 25 17:11:33 CEST 2007


New commits:
commit c0ab9d5d9ada8d5e5368911b7c523518a34d4134
Author: David Reveman <davidr at novell.com>
Date:   Wed Jul 25 11:06:05 2007 -0400

    Get red/blue color components right.


 gtk/window-decorator/gtk-window-decorator.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Modified: compiz/gtk/window-decorator/gtk-window-decorator.c
===================================================================
--- compiz/gtk/window-decorator/gtk-window-decorator.c
+++ compiz/gtk/window-decorator/gtk-window-decorator.c
@@ -2358,9 +2358,9 @@ draw_switcher_background (decor_t *d)
 		       d->width,
 		       d->height);
 
-    pixel = ((((a * style->bg[GTK_STATE_NORMAL].red  ) >> 24) & 0x0000ff) |
+    pixel = ((((a * style->bg[GTK_STATE_NORMAL].blue ) >> 24) & 0x0000ff) |
 	     (((a * style->bg[GTK_STATE_NORMAL].green) >> 16) & 0x00ff00) |
-	     (((a * style->bg[GTK_STATE_NORMAL].blue ) >>  8) & 0xff0000) |
+	     (((a * style->bg[GTK_STATE_NORMAL].red  ) >>  8) & 0xff0000) |
 	     (((a & 0xff00) << 16)));
 
     decor_update_switcher_property (d);


More information about the commits mailing list