[gimp] app: GimpMybrush: Don't treat time == 0 as a magic value
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: GimpMybrush: Don't treat time == 0 as a magic value
- Date: Sat, 19 Dec 2015 23:28:05 +0000 (UTC)
commit 812526f0f03280dfb2c02e69b72af17f678f184e
Author: Daniel Sabo <DanielSabo gmail com>
Date: Thu Dec 17 09:36:08 2015 -0800
app: GimpMybrush: Don't treat time == 0 as a magic value
app/paint/gimpmybrush.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimpmybrush.c b/app/paint/gimpmybrush.c
index 2e47ca2..5f2f11f 100644
--- a/app/paint/gimpmybrush.c
+++ b/app/paint/gimpmybrush.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]