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
2b59cf84
Commit
2b59cf84
authored
Jul 12, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix EndFigure notification in GetGlyphRunOutline().
parent
fda08897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
freetype.c
dlls/dwrite/freetype.c
+5
-8
No files found.
dlls/dwrite/freetype.c
View file @
2b59cf84
...
...
@@ -297,12 +297,6 @@ static void get_cubic_glyph_outline(const FT_Outline *outline, short point, shor
cubic_control
[
2
].
y
+=
(
cubic_control
[
3
].
y
+
1
)
/
3
;
}
static
inline
void
set_outline_end_tag
(
short
point
,
short
endpoint
,
UINT8
*
tag
)
{
if
(
point
==
endpoint
)
*
tag
|=
OUTLINE_POINT_END
;
}
static
short
get_outline_data
(
const
FT_Outline
*
outline
,
struct
glyph_outline
*
ret
)
{
short
contour
,
point
=
0
,
first_pt
,
count
;
...
...
@@ -312,6 +306,8 @@ static short get_outline_data(const FT_Outline *outline, struct glyph_outline *r
if
(
ret
)
{
ft_vector_to_d2d_point
(
&
outline
->
points
[
point
],
&
ret
->
points
[
count
]);
ret
->
tags
[
count
]
=
OUTLINE_POINT_START
;
if
(
count
)
ret
->
tags
[
count
-
1
]
|=
OUTLINE_POINT_END
;
}
point
++
;
...
...
@@ -323,7 +319,6 @@ static short get_outline_data(const FT_Outline *outline, struct glyph_outline *r
if
(
ret
)
{
ft_vector_to_d2d_point
(
&
outline
->
points
[
point
],
&
ret
->
points
[
count
]);
ret
->
tags
[
count
]
|=
OUTLINE_POINT_LINE
;
set_outline_end_tag
(
point
,
outline
->
contours
[
contour
],
&
ret
->
tags
[
count
]);
}
point
++
;
...
...
@@ -341,7 +336,6 @@ static short get_outline_data(const FT_Outline *outline, struct glyph_outline *r
ret
->
tags
[
count
]
=
OUTLINE_POINT_BEZIER
;
ret
->
tags
[
count
+
1
]
=
OUTLINE_POINT_BEZIER
;
ret
->
tags
[
count
+
2
]
=
OUTLINE_POINT_BEZIER
;
set_outline_end_tag
(
point
,
outline
->
contours
[
contour
],
&
ret
->
tags
[
count
+
2
]);
}
count
+=
3
;
...
...
@@ -361,6 +355,9 @@ static short get_outline_data(const FT_Outline *outline, struct glyph_outline *r
}
}
if
(
ret
)
ret
->
tags
[
count
-
1
]
|=
OUTLINE_POINT_END
;
return
count
;
}
...
...
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