mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
css: Fix oklab conversion
This commit is contained in:
parent
b8c1ac41d2
commit
fcd95cd5c6
@ -94,8 +94,8 @@ convert_to_rectangular (GtkCssColor *output)
|
||||
|
||||
case GTK_CSS_COLOR_SPACE_OKLCH:
|
||||
gtk_oklch_to_oklab (output->values[0],
|
||||
output->values[1] / 100,
|
||||
output->values[2] / 100,
|
||||
output->values[1],
|
||||
output->values[2],
|
||||
&v[0], &v[1], &v[2]);
|
||||
v[3] = output->values[3];
|
||||
gtk_css_color_init (output, GTK_CSS_COLOR_SPACE_OKLAB, v);
|
||||
|
Loading…
Reference in New Issue
Block a user