From fcd95cd5c6a98f8b9652c62978c1a3fc53fc583a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 31 May 2024 19:33:22 -0400 Subject: [PATCH] css: Fix oklab conversion --- gtk/gtkcsscolor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcsscolor.c b/gtk/gtkcsscolor.c index 98256254cc..1a08c11819 100644 --- a/gtk/gtkcsscolor.c +++ b/gtk/gtkcsscolor.c @@ -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);