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
6a6aa313
Commit
6a6aa313
authored
Feb 16, 2016
by
Vincent Povirk
Committed by
Alexandre Julliard
Feb 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix GdipWidenPath transform for non-pixel pens.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
91352c5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
graphicspath.c
dlls/gdiplus/graphicspath.c
+4
-1
graphicspath.c
dlls/gdiplus/tests/graphicspath.c
+4
-4
No files found.
dlls/gdiplus/graphicspath.c
View file @
6a6aa313
...
@@ -2074,7 +2074,7 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
...
@@ -2074,7 +2074,7 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
status
=
GdipClonePath
(
path
,
&
flat_path
);
status
=
GdipClonePath
(
path
,
&
flat_path
);
if
(
status
==
Ok
)
if
(
status
==
Ok
)
status
=
GdipFlattenPath
(
flat_path
,
matrix
,
flatness
);
status
=
GdipFlattenPath
(
flat_path
,
pen
->
unit
==
UnitPixel
?
matrix
:
NULL
,
flatness
);
if
(
status
==
Ok
&&
!
init_path_list
(
&
points
,
314
.
0
,
22
.
0
))
if
(
status
==
Ok
&&
!
init_path_list
(
&
points
,
314
.
0
,
22
.
0
))
status
=
OutOfMemory
;
status
=
OutOfMemory
;
...
@@ -2147,6 +2147,9 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
...
@@ -2147,6 +2147,9 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
GdipDeletePath
(
flat_path
);
GdipDeletePath
(
flat_path
);
if
(
status
==
Ok
&&
pen
->
unit
!=
UnitPixel
)
status
=
GdipTransformPath
(
path
,
matrix
);
return
status
;
return
status
;
}
}
...
...
dlls/gdiplus/tests/graphicspath.c
View file @
6a6aa313
...
@@ -1056,10 +1056,10 @@ static path_test_t widenline_path[] = {
...
@@ -1056,10 +1056,10 @@ static path_test_t widenline_path[] = {
};
};
static
path_test_t
widenline_wide_path
[]
=
{
static
path_test_t
widenline_wide_path
[]
=
{
{
5
.
0
,
0
.
0
,
PathPointTypeStart
,
0
,
1
},
/*0*/
{
5
.
0
,
0
.
0
,
PathPointTypeStart
,
0
,
0
},
/*0*/
{
50
.
0
,
0
.
0
,
PathPointTypeLine
,
0
,
1
},
/*1*/
{
50
.
0
,
0
.
0
,
PathPointTypeLine
,
0
,
0
},
/*1*/
{
50
.
0
,
20
.
0
,
PathPointTypeLine
,
0
,
1
},
/*2*/
{
50
.
0
,
20
.
0
,
PathPointTypeLine
,
0
,
0
},
/*2*/
{
5
.
0
,
20
.
0
,
PathPointTypeLine
|
PathPointTypeCloseSubpath
,
0
,
1
}
/*3*/
{
5
.
0
,
20
.
0
,
PathPointTypeLine
|
PathPointTypeCloseSubpath
,
0
,
0
}
/*3*/
};
};
static
void
test_widen
(
void
)
static
void
test_widen
(
void
)
...
...
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