From ccfffb2578fb0747dd677184f2341bd3791919bf Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 24 Apr 2020 22:20:09 +0200 Subject: demos: Initialize brush size in "paint" demo Otherwise lines end up with 0 thickness. --- demos/gtk-demo/paint.c | 1 + 1 file changed, 1 insertion(+) (limited to 'demos') diff --git a/demos/gtk-demo/paint.c b/demos/gtk-demo/paint.c index 6312575a5f..cf5adc4743 100644 --- a/demos/gtk-demo/paint.c +++ b/demos/gtk-demo/paint.c @@ -339,6 +339,7 @@ drawing_area_init (DrawingArea *area) gtk_widget_add_controller (GTK_WIDGET (area), GTK_EVENT_CONTROLLER (gesture)); area->draw_color = (GdkRGBA) { 0, 0, 0, 1 }; + area->brush_size = 1; } static GtkWidget * -- cgit v1.2.1