[gegl] bin: make paint mode use stroke width relative to view



commit 60a0322717b00d6bc991226910101e898a035099
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jan 16 18:41:12 2019 +0100

    bin: make paint mode use stroke width relative to view

 bin/ui.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/bin/ui.c b/bin/ui.c
index af02ccb35..bb1abfde1 100644
--- a/bin/ui.c
+++ b/bin/ui.c
@@ -992,7 +992,7 @@ static void on_paint_drag (MrgEvent *e, void *data1, void *data2)
       gegl_path_append (path, 'M', x, y);
       gegl_path_append (path, 'L', x, y);
       gegl_node_set (o->active, "d", path, "color", gegl_color_new("blue"),
-                     "width", 142.0, NULL);
+                     "width", 16.0 / o->scale, NULL);
       break;
     case MRG_DRAG_MOTION:
       gegl_path_append (path, 'L', x, y);


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