Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
52f769e8
Commit
52f769e8
authored
17 years ago
by
Laurent Vromman
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gdi32: Correct a test where the tested function was not called.
parent
a34c1f94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/gdi32/path.c
+0
-5
0 additions, 5 deletions
dlls/gdi32/path.c
dlls/gdi32/tests/path.c
+3
-2
3 additions, 2 deletions
dlls/gdi32/tests/path.c
with
3 additions
and
7 deletions
dlls/gdi32/path.c
+
0
−
5
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
)
...
...
This diff is collapsed.
Click to expand it.
dlls/gdi32/tests/path.c
+
3
−
2
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment