Module: wine Branch: master Commit: 84ce9dfba714fbc1e9849b94c79020d583098cd1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=84ce9dfba714fbc1e9849b94c7...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Jun 22 14:29:10 2016 +0900
gdi32: Start a new path stroke when the current position differs from the last.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdi32/path.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index ede3d61..0d4ad59 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -282,7 +282,9 @@ static BOOL start_new_stroke( struct path_physdev *physdev ) struct gdi_path *path = physdev->path;
if (!path->newStroke && path->count && - !(path->flags[path->count - 1] & PT_CLOSEFIGURE)) + !(path->flags[path->count - 1] & PT_CLOSEFIGURE) && + path->points[path->count - 1].x == path->pos.x && + path->points[path->count - 1].y == path->pos.y) return TRUE;
path->newStroke = FALSE; @@ -1234,11 +1236,7 @@ static BOOL pathdrv_PolyDraw( PHYSDEV dev, const POINT *pts, const BYTE *types, /* fall through */ default: /* restore original position */ - if (path->pos.x != orig_pos.x || path->pos.y != orig_pos.y) - { - path->newStroke = TRUE; - path->pos = orig_pos; - } + path->pos = orig_pos; return FALSE; }