[StThemeNode] Fix gradient colors

CAIRO_FORMAT_ARGB32 matches COGL_PIXEL_FORMAT_BGRA_8888_PRE on
little Endian.
This commit is contained in:
Florian Müllner 2010-03-24 23:25:56 +01:00
parent d9f43e27a0
commit 6deee27d14

View File

@ -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