gdk: Add a rgb8 → rgba8 conversion macro
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 3 Mar 2022 14:36:57 +0000 (14:36 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Mar 2022 02:05:00 +0000 (22:05 -0400)
commitb8d01bf0415217d71db5105acc4d8e55f0d69f4b
tree134683fa5553e3e6dbe6e9a3fa2cc52a1cee112c
parentc636ea036a659b744f7f7e12ca6d9042825e2a3f
gdk: Add a rgb8 → rgba8 conversion macro

This one can be used for both premultiplied and non-premultiplied alpha
formats, since alpha is always 255.  It is useful for opaque PNG upload
on both cairo and GL renderers.
gdk/gdkmemoryformat.c