mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
background: Don't bother supporting alpha channels for gradients
This commit is contained in:
parent
249468bbea
commit
e3d5969282
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user