From 209a1a69ccb74f0d661ad99d89c8e44b2e196b69 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 13 Nov 2023 22:13:18 +0100 Subject: [PATCH] gtk: Use some more inline helpers --- gtk/gtkrenderborder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c index c9415c4ebf..ab95e1b736 100644 --- a/gtk/gtkrenderborder.c +++ b/gtk/gtkrenderborder.c @@ -38,6 +38,7 @@ #include "gdk/gdkhslaprivate.h" #include "gsk/gskroundedrectprivate.h" +#include "gsk/gskrectprivate.h" typedef struct _GtkBorderImage GtkBorderImage; @@ -678,8 +679,8 @@ gtk_css_style_snapshot_border (GtkCssBoxes *boxes, graphene_simd4f_t alpha_test_vector; /* Optimize the most common case of "This widget has no border" */ - if (graphene_rect_equal (gtk_css_boxes_get_border_rect (boxes), - gtk_css_boxes_get_padding_rect (boxes))) + if (gsk_rect_equal (gtk_css_boxes_get_border_rect (boxes), + gtk_css_boxes_get_padding_rect (boxes))) return; colors[0] = *gtk_css_color_value_get_rgba (border->border_top_color ? border->border_top_color : boxes->style->core->color);