mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
cogl/bitmap-conversion: Fix packing 8bpc opaque alpha
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3441>
This commit is contained in:
parent
80daaac438
commit
dc3866adf4
@ -645,7 +645,7 @@ G_PASTE (_cogl_pack_bgrx_8888_, component_size) (const component_type *src,
|
||||
dst[2] = PACK_BYTE (src[0]);
|
||||
dst[1] = PACK_BYTE (src[1]);
|
||||
dst[0] = PACK_BYTE (src[2]);
|
||||
dst[3] = PACK_BYTE (255);
|
||||
dst[3] = 255;
|
||||
src += 4;
|
||||
dst += 4;
|
||||
}
|
||||
@ -677,7 +677,7 @@ G_PASTE (_cogl_pack_xrgb_8888_, component_size) (const component_type *src,
|
||||
dst[1] = PACK_BYTE (src[0]);
|
||||
dst[2] = PACK_BYTE (src[1]);
|
||||
dst[3] = PACK_BYTE (src[2]);
|
||||
dst[0] = PACK_BYTE (255);
|
||||
dst[0] = 255;
|
||||
src += 4;
|
||||
dst += 4;
|
||||
}
|
||||
@ -709,7 +709,7 @@ G_PASTE (_cogl_pack_xbgr_8888_, component_size) (const component_type *src,
|
||||
dst[3] = PACK_BYTE (src[0]);
|
||||
dst[2] = PACK_BYTE (src[1]);
|
||||
dst[1] = PACK_BYTE (src[2]);
|
||||
dst[0] = PACK_BYTE (255);
|
||||
dst[0] = 255;
|
||||
src += 4;
|
||||
dst += 4;
|
||||
}
|
||||
@ -741,7 +741,7 @@ G_PASTE (_cogl_pack_rgbx_8888_, component_size) (const component_type *src,
|
||||
dst[0] = PACK_BYTE (src[0]);
|
||||
dst[1] = PACK_BYTE (src[1]);
|
||||
dst[2] = PACK_BYTE (src[2]);
|
||||
dst[3] = PACK_BYTE (255);
|
||||
dst[3] = 255;
|
||||
src += 4;
|
||||
dst += 4;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user