[mutter] background: Don't bother supporting alpha channels for gradients
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] background: Don't bother supporting alpha channels for gradients
- Date: Thu, 7 Aug 2014 18:02:08 +0000 (UTC)
commit e3d5969282e4fad90161287781eb11f6c83d0d67
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 7 13:39:21 2014 -0400
background: Don't bother supporting alpha channels for gradients
src/compositor/meta-background.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c
index d143b21..0cd2eae 100644
--- a/src/compositor/meta-background.c
+++ b/src/compositor/meta-background.c
@@ -814,15 +814,15 @@ meta_background_load_gradient (MetaBackground *self,
pixels[0] = color->red;
pixels[1] = color->green;
pixels[2] = color->blue;
- pixels[3] = color->alpha;
+ pixels[3] = 0xFF;
pixels[4] = second_color->red;
pixels[5] = second_color->green;
pixels[6] = second_color->blue;
- pixels[7] = second_color->alpha;
+ pixels[7] = 0xFF;
texture = cogl_texture_new_from_data (width, height,
COGL_TEXTURE_NO_SLICING,
- COGL_PIXEL_FORMAT_RGBA_8888,
+ COGL_PIXEL_FORMAT_RGB_888,
COGL_PIXEL_FORMAT_ANY,
4,
pixels);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]