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
52f769e8
Commit
52f769e8
authored
Nov 06, 2007
by
Laurent Vromman
Committed by
Alexandre Julliard
Nov 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Correct a test where the tested function was not called.
parent
a34c1f94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
path.c
dlls/gdi32/path.c
+0
-5
path.c
dlls/gdi32/tests/path.c
+3
-2
No files found.
dlls/gdi32/path.c
View file @
52f769e8
...
...
@@ -1901,11 +1901,6 @@ static BOOL PATH_WidenPath(DC *dc)
return
FALSE
;
}
/* pen width must be strictly higher than 1 */
if
(
penWidth
==
1
)
{
return
TRUE
;
}
penWidthIn
=
penWidth
/
2
;
penWidthOut
=
penWidth
/
2
;
if
(
penWidthIn
+
penWidthOut
<
penWidth
)
...
...
dlls/gdi32/tests/path.c
View file @
52f769e8
...
...
@@ -83,14 +83,15 @@ static void test_widenpath(void)
AbortPath
(
hdc
);
/* Test when the pen width is equal to 1. The path should
not change
*/
/* Test when the pen width is equal to 1. The path should
change too
*/
narrowPen
=
CreatePen
(
PS_SOLID
,
1
,
RGB
(
0
,
0
,
0
));
oldPen
=
SelectObject
(
hdc
,
narrowPen
);
BeginPath
(
hdc
);
Polyline
(
hdc
,
pnt
,
6
);
EndPath
(
hdc
);
ret
=
WidenPath
(
hdc
);
nSize
=
GetPath
(
hdc
,
NULL
,
NULL
,
0
);
ok
(
nSize
==
6
,
"WidenPath fails detecting 1px wide pen. Path length is %d, should be
6
\n
"
,
nSize
);
ok
(
nSize
>
6
,
"WidenPath should compute a widdened path with a 1px wide pen. Path length is %d, should be more than
6
\n
"
,
nSize
);
ReleaseDC
(
0
,
hdc
);
return
;
...
...
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