css: Fix opacity handling

We were using the invert value for opacity.
This commit is contained in:
Matthias Clasen
2023-11-27 15:29:57 -05:00
parent b937c17985
commit 96f7bb99a7

View File

@@ -214,7 +214,7 @@ gtk_css_filter_get_matrix (const GtkCssFilter *filter,
break;
case GTK_CSS_FILTER_OPACITY:
value = _gtk_css_number_value_get (filter->invert.value, 1.0);
value = _gtk_css_number_value_get (filter->opacity.value, 1.0);
graphene_matrix_init_from_float (matrix, (float[16]) {
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,