[gnome-shell] [StThemeNode] Fix gradient colors



commit 6deee27d14ec007094aba262d4cb897ce9688615
Author: Florian Müllner <fmuellner src gnome org>
Date:   Wed Mar 24 23:25:56 2010 +0100

    [StThemeNode] Fix gradient colors
    
    CAIRO_FORMAT_ARGB32 matches COGL_PIXEL_FORMAT_BGRA_8888_PRE on
    little Endian.

 src/st/st-theme-node-drawing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c
index 374a55c..5788db9 100644
--- a/src/st/st-theme-node-drawing.c
+++ b/src/st/st-theme-node-drawing.c
@@ -658,7 +658,7 @@ st_theme_node_render_gradient (StThemeNode *node)
   texture = cogl_texture_new_from_data (node->alloc_width, node->alloc_height,
                                         COGL_TEXTURE_NONE,
 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
-                                        COGL_PIXEL_FORMAT_RGBA_8888_PRE,
+                                        COGL_PIXEL_FORMAT_BGRA_8888_PRE,
 #elif G_BYTE_ORDER == G_BIG_ENDIAN
                                         COGL_PIXEL_FORMAT_ARGB_8888_PRE,
 #else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]