Skip to content
Snippets Groups Projects
Commit 8de4b048 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

Merge branch 'wip/otte/for-main' into 'main'

color: NEVER EVER use memcpy() in critical path

See merge request GNOME/gtk!7593
parents 3014d36a 175dba86
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,10 @@ _gdk_color_to_float (const GdkColor *self,
{
if (gdk_color_state_equal (self->color_state, color_state))
{
memcpy (values, self->values, sizeof (float) * 4);
values[0] = self->values[0];
values[1] = self->values[1];
values[2] = self->values[2];
values[3] = self->values[3];
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment