Commit b1cced69 authored by Øyvind Kolås's avatar Øyvind Kolås

disable use of dynamics by default (it slows things down too much for

* bin/editor.c: (stroke_press_event), (stroke_motion_notify_event):
disable use of dynamics by default (it slows things down too
much for now).

svn path=/trunk/; revision=2689
parent 50a90deb
2008-11-02 Øyvind Kolås <pippin@gimp.org>
* bin/editor.c: (stroke_press_event), (stroke_motion_notify_event):
disable use of dynamics by default (it slows things down too
much for now).
2008-11-02 Øyvind Kolås <pippin@gimp.org>
* bin/Makefile.am: added rules to build commands for pie menu.
......
......@@ -20,6 +20,8 @@
#define ACTIVE_COLOR cairo_set_source_rgba (cr, 1.0, 0.0, 0.0, 0.5)
#define NORMAL_COLOR cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 0.5)
#define USE_DYNAMICS 0
#include "config.h"
#include <gdk/gdkkeysyms.h>
......@@ -1124,7 +1126,9 @@ stroke_press_event (GtkWidget *widget,
gegl_path_clear (vector);
gegl_path_append (vector, 'M', ex, ey);
tools.in_drag = TRUE;
#if USE_DYNAMICS
tools.width_path = gegl_path_add_parameter_path (vector, "linewidth");
#endif
g_object_unref (vector);
return TRUE;
}
......@@ -1202,6 +1206,7 @@ stroke_motion_notify_event (GtkWidget *widget,
gegl_path_append (tools.path, 'L', ex, ey);
#if USE_DYNAMICS
if(foo%3==0){
gdouble magnitude = 1.0;
......@@ -1221,6 +1226,7 @@ stroke_motion_notify_event (GtkWidget *widget,
gegl_path_append (tools.width_path, '_', -1.0, magnitude);
}
#endif
tools.prevx = ex;
tools.prevy = ey;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment