Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1b4f0f8a
Commit
1b4f0f8a
authored
Jul 29, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Jul 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Pass the path directly to start_new_stroke().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
67520eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
path.c
dlls/gdi32/path.c
+4
-6
No files found.
dlls/gdi32/path.c
View file @
1b4f0f8a
...
...
@@ -298,10 +298,8 @@ static void reverse_points( POINT *points, UINT count )
}
/* start a new path stroke if necessary */
static
BOOL
start_new_stroke
(
struct
path_physdev
*
physdev
)
static
BOOL
start_new_stroke
(
struct
gdi_path
*
path
)
{
struct
gdi_path
*
path
=
physdev
->
path
;
if
(
!
path
->
newStroke
&&
path
->
count
&&
!
(
path
->
flags
[
path
->
count
-
1
]
&
PT_CLOSEFIGURE
)
&&
path
->
points
[
path
->
count
-
1
].
x
==
path
->
pos
.
x
&&
...
...
@@ -309,7 +307,7 @@ static BOOL start_new_stroke( struct path_physdev *physdev )
return
TRUE
;
path
->
newStroke
=
FALSE
;
return
add_points
(
p
hysdev
->
p
ath
,
&
path
->
pos
,
1
,
PT_MOVETO
)
!=
NULL
;
return
add_points
(
path
,
&
path
->
pos
,
1
,
PT_MOVETO
)
!=
NULL
;
}
/* set current position to the last point that was added to the path */
...
...
@@ -330,7 +328,7 @@ static void close_figure( struct gdi_path *path )
static
BOOL
add_log_points_new_stroke
(
struct
path_physdev
*
physdev
,
const
POINT
*
points
,
DWORD
count
,
BYTE
type
)
{
if
(
!
start_new_stroke
(
physdev
))
return
FALSE
;
if
(
!
start_new_stroke
(
physdev
->
path
))
return
FALSE
;
if
(
!
add_log_points
(
physdev
,
points
,
count
,
type
))
return
FALSE
;
update_current_pos
(
physdev
->
path
);
return
TRUE
;
...
...
@@ -1143,7 +1141,7 @@ static BOOL PATH_Arc( PHYSDEV dev, INT x1, INT y1, INT x2, INT y2,
}
/* arcto: Add a PT_MOVETO only if this is the first entry in a stroke */
if
(
lines
==-
1
&&
!
start_new_stroke
(
physdev
))
return
FALSE
;
if
(
lines
==
-
1
&&
!
start_new_stroke
(
physdev
->
path
))
return
FALSE
;
/* Add the arc to the path with one Bezier spline per quadrant that the
* arc spans */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment