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
0be8d446
Commit
0be8d446
authored
Feb 23, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Create open, hollow geometry in d2d_d3d_render_target_DrawLine().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d7fb7818
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
render_target.c
dlls/d2d1/render_target.c
+2
-2
d2d1.c
dlls/d2d1/tests/d2d1.c
+4
-4
No files found.
dlls/d2d1/render_target.c
View file @
0be8d446
...
...
@@ -494,9 +494,9 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_DrawLine(ID2D1RenderTarget *
return
;
}
ID2D1GeometrySink_BeginFigure
(
sink
,
p0
,
D2D1_FIGURE_BEGIN_
FILLED
);
ID2D1GeometrySink_BeginFigure
(
sink
,
p0
,
D2D1_FIGURE_BEGIN_
HOLLOW
);
ID2D1GeometrySink_AddLine
(
sink
,
p1
);
ID2D1GeometrySink_EndFigure
(
sink
,
D2D1_FIGURE_END_
CLOSED
);
ID2D1GeometrySink_EndFigure
(
sink
,
D2D1_FIGURE_END_
OPEN
);
if
(
FAILED
(
hr
=
ID2D1GeometrySink_Close
(
sink
)))
WARN
(
"Close() failed, %#x.
\n
"
,
hr
);
ID2D1GeometrySink_Release
(
sink
);
...
...
dlls/d2d1/tests/d2d1.c
View file @
0be8d446
...
...
@@ -3749,23 +3749,23 @@ static void test_draw_geometry(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to end draw, hr %#x.
\n
"
,
hr
);
match
=
compare_figure
(
surface
,
0
,
0
,
160
,
160
,
0xff652e89
,
0
,
""
);
todo_wine
ok
(
match
,
"Figure does not match.
\n
"
);
ok
(
match
,
"Figure does not match.
\n
"
);
match
=
compare_figure
(
surface
,
160
,
0
,
160
,
160
,
0xff652e89
,
0
,
"yGBQUFBQUFBQUFDoYQAA"
);
todo_wine
ok
(
match
,
"Figure does not match.
\n
"
);
ok
(
match
,
"Figure does not match.
\n
"
);
match
=
compare_figure
(
surface
,
320
,
0
,
160
,
160
,
0xff652e89
,
0
,
"xjIUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEU"
"jAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEU"
"jAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEU"
"jAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEUjAEU"
"jAEUjAEUjAEUjAEUxjIA"
);
todo_wine
ok
(
match
,
"Figure does not match.
\n
"
);
ok
(
match
,
"Figure does not match.
\n
"
);
match
=
compare_figure
(
surface
,
480
,
0
,
160
,
160
,
0xff652e89
,
2
,
"zjECnQETjAEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEV"
"igEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEV"
"igEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEV"
"igEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEVigEV"
"igEVigEVigEVigEVjAETnQECzjEA"
);
todo_wine
ok
(
match
,
"Figure does not match.
\n
"
);
ok
(
match
,
"Figure does not match.
\n
"
);
match
=
compare_figure
(
surface
,
0
,
160
,
160
,
160
,
0xff652e89
,
0
,
"5mAUjAEUjAEUjAEUjAEUhmIA"
);
todo_wine
ok
(
match
,
"Figure does not match.
\n
"
);
...
...
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