[gtk/wip/matthiasc/lottie-stroke: 54/55] curve2: don't fill the outline




commit b6c9b404c3bdcf617a4411f67ff8d86fbce84c88
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 11 12:19:55 2020 -0500

    curve2: don't fill the outline
    
    That only confuses matters, in terms of stroker calls.

 tests/curve2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/curve2.c b/tests/curve2.c
index c752f5609d..a690d061bd 100644
--- a/tests/curve2.c
+++ b/tests/curve2.c
@@ -142,7 +142,7 @@ demo_widget_snapshot (GtkWidget   *widget,
            gtk_snapshot_pop (snapshot);
         }
 
-      gtk_snapshot_push_fill (snapshot, self->outline_path, GSK_FILL_RULE_WINDING);
+      gtk_snapshot_push_stroke (snapshot, self->outline_path, self->outline_stroke);
 
       gtk_snapshot_append_color (snapshot,
                                  &(GdkRGBA){ 0, 0, 0, 0.2},
@@ -323,7 +323,7 @@ update_outline_path (DemoWidget *self)
   if (self->stroke_path)
     {
       g_clear_pointer (&self->outline_path, gsk_path_unref);
-      self->outline_path = gsk_path_stroke (self->stroke_path, self->outline_stroke);
+      self->outline_path = gsk_path_ref (self->stroke_path);
       gtk_widget_queue_draw (GTK_WIDGET (self));
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]