css: Fix oklab conversion

This commit is contained in:
Matthias Clasen 2024-05-31 19:33:22 -04:00
parent b8c1ac41d2
commit fcd95cd5c6

View File

@ -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);