URL:
  <http://gna.org/bugs/?20405>

                 Summary: Under rare  circumstances  first stroke drawn
incorrectly
                 Project: MyPaint
            Submitted by: zrzz
            Submitted on: Fri 04 Jan 2013 10:37:34 AM GMT
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.1.0@git 1635035
         Planned Release: None
        Operating System: Lubuntu 12.10/Compiz

    _______________________________________________________

Details:

1) start mypaint
2) Do NOT move mouse.
3) From current position very quickly draw line with mouse
4) Mypaint might add unexpected hook to the beginning of the line. (see
screenshot: I've drawn vertical line, diagonal line was added by mypaint)

AFAICT this happens due mypaint-brush.c\ mypaint_brush_stroke_to due its usage
of states at line 790:


x = self->states[MYPAINT_BRUSH_STATE_X] + (x -
self->states[MYPAINT_BRUSH_STATE_X]) * fac


fac is calculated from dtime and slow position tracking setting of brush(In my
case it is 1.03 of  deevad/pen).

Upon initialization states are zeroed, so calculated value is lower than it's
supposed to be. 

If mouse is moved before drawing, then motion_notify_cb at canvasevent.py:519
will call stroke_to with zero pressure, so coordinate states will be updated.
However if stroke_to with pressure is called immediately without moving mouse,
then weird thing might happen 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 04 Jan 2013 10:37:34 AM GMT  Name: screenshot.jpg  Size: 50kB   By:
zrzz

<http://gna.org/bugs/download.php?file_id=16895>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20405>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to