mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
wayland: Do not use compositor-provided image descriptions
When the compositor sends us an image description, we currently happily reuse it. However, those image descriptions may contain optional properties that we do not handle - example: reference white level. So if we were to reuse that image description, we would set a wrong reference white level. To avoid issues like that, never use compositor-provided image descriptions. However, query those image descriptions and map them to the closest GdkColorState, so that we can quickly look up *our* version of that image description and use that one.
This commit is contained in:
parent
541ffbe4b5
commit
d71a7c901d
@ -491,9 +491,6 @@ image_desc_info_done (void *data,
|
||||
cs = gdk_color_state_from_image_description_bits (desc);
|
||||
if (cs)
|
||||
{
|
||||
g_hash_table_insert (self->color->cs_to_desc,
|
||||
gdk_color_state_ref (cs),
|
||||
desc->image_desc);
|
||||
g_hash_table_insert (self->color->id_to_cs,
|
||||
GUINT_TO_POINTER (desc->identity),
|
||||
gdk_color_state_ref (cs));
|
||||
|
Loading…
Reference in New Issue
Block a user