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
42ed6ddd
Commit
42ed6ddd
authored
Jul 16, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix vector transformation in GetGlyphOrientationTransform().
parent
2132a060
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
analyzer.c
dlls/dwrite/analyzer.c
+2
-16
No files found.
dlls/dwrite/analyzer.c
View file @
42ed6ddd
...
...
@@ -1507,22 +1507,8 @@ static HRESULT WINAPI dwritetextanalyzer2_GetGlyphOrientationTransform(IDWriteTe
/* shift components represent transform necessary to get from original point to
rotated one in new coordinate system */
if
((
originX
!=
0
.
0
||
originY
!=
0
.
0
)
&&
angle
!=
DWRITE_GLYPH_ORIENTATION_ANGLE_0_DEGREES
)
{
const
DWRITE_MATRIX
*
p
;
switch
(
angle
)
{
case
DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES
:
angle
=
DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES
;
break
;
case
DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES
:
angle
=
DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES
;
break
;
default:
;
}
p
=
&
transforms
[
angle
];
m
->
dx
=
originX
-
(
p
->
m11
*
originX
+
p
->
m12
*
originY
);
m
->
dy
=
originY
-
(
p
->
m21
*
originX
+
p
->
m22
*
originY
);
m
->
dx
=
originX
-
(
m
->
m11
*
originX
+
m
->
m21
*
originY
);
m
->
dy
=
originY
-
(
m
->
m12
*
originX
+
m
->
m22
*
originY
);
}
return
S_OK
;
...
...
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