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
e547ceb1
Commit
e547ceb1
authored
Jul 12, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use passed pen in GdipAddPathWorldBound.
parent
bcd0eda6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
graphicspath.c
dlls/gdiplus/graphicspath.c
+9
-4
graphicspath.c
dlls/gdiplus/tests/graphicspath.c
+5
-8
No files found.
dlls/gdiplus/graphicspath.c
View file @
e547ceb1
...
...
@@ -217,6 +217,7 @@ GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds,
GpPointF
extrema
[
2
];
GpPointF
*
points
;
INT
count
,
i
;
REAL
path_width
;
/* Matrix and pen can be null. */
if
(
!
path
||
!
bounds
)
...
...
@@ -229,10 +230,6 @@ GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds,
return
Ok
;
}
/* FIXME: implement case where pen is non-NULL. */
if
(
pen
)
return
NotImplemented
;
points
=
path
->
pathdata
.
Points
;
extrema
[
0
].
X
=
extrema
[
1
].
X
=
points
[
0
].
X
;
extrema
[
0
].
Y
=
extrema
[
1
].
Y
=
points
[
0
].
Y
;
...
...
@@ -249,6 +246,14 @@ GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds,
GdipTransformMatrixPoints
((
GpMatrix
*
)
matrix
,
extrema
,
2
);
}
if
(
pen
){
path_width
=
pen
->
width
*
pen
->
miterlimit
/
2
.
0
;
extrema
[
0
].
X
-=
path_width
;
extrema
[
0
].
Y
-=
path_width
;
extrema
[
1
].
X
+=
path_width
;
extrema
[
1
].
Y
+=
path_width
;
}
bounds
->
X
=
extrema
[
0
].
X
;
bounds
->
Y
=
extrema
[
0
].
Y
;
bounds
->
Width
=
extrema
[
1
].
X
-
extrema
[
0
].
X
;
...
...
dlls/gdiplus/tests/graphicspath.c
View file @
e547ceb1
...
...
@@ -301,16 +301,13 @@ static void test_worldbounds(void)
GdipAddPathArc
(
path
,
100
.
0
,
100
.
0
,
500
.
0
,
700
.
0
,
0
.
0
,
100
.
0
);
GdipAddPathLine2
(
path
,
&
(
line2_points
[
0
]),
10
);
status
=
GdipGetPathWorldBounds
(
path
,
&
bounds
,
NULL
,
pen
);
todo_wine
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
GdipDeletePath
(
path
);
todo_wine
{
expectf
(
100
.
0
,
bounds
.
X
);
expectf
(
100
.
0
,
bounds
.
Y
);
expectf
(
650
.
0
,
bounds
.
Width
);
expectf
(
800
.
0
,
bounds
.
Height
);
}
expectf
(
100
.
0
,
bounds
.
X
);
expectf
(
100
.
0
,
bounds
.
Y
);
expectf
(
650
.
0
,
bounds
.
Width
);
expectf
(
800
.
0
,
bounds
.
Height
);
}
START_TEST
(
graphicspath
)
...
...
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