Commit 812526f0 authored by Daniel Sabo's avatar Daniel Sabo

app: GimpMybrush: Don't treat time == 0 as a magic value

parent dd7b9a57
......@@ -203,7 +203,7 @@ gimp_mybrush_paint (GimpPaintCore *paint_core,
options->hardness);
mypaint_brush_new_stroke (mybrush->private->brush);
mybrush->private->lastTime = 0;
mybrush->private->lastTime = -1;
}
break;
......@@ -234,7 +234,7 @@ gimp_mybrush_motion (GimpPaintCore *paint_core,
mypaint_surface_begin_atomic ((MyPaintSurface *) mybrush->private->surface);
if (mybrush->private->lastTime == 0)
if (mybrush->private->lastTime < 0)
{
/* First motion, so we need a zero pressure event to start the stroke */
mybrush->private->lastTime = (gint64)time - 15;
......
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