Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
376adf94
Commit
376adf94
authored
Nov 01, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Try to avoid not necessary glyph transformations.
parent
2d5ca309
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
freetype.c
dlls/gdi32/freetype.c
+10
-3
No files found.
dlls/gdi32/freetype.c
View file @
376adf94
...
...
@@ -3321,6 +3321,14 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
dcmat
.
eM21
=
dcmat
.
eM12
=
0
;
}
/* Try to avoid not necessary glyph transformations */
if
(
dcmat
.
eM21
==
0
.
0
&&
dcmat
.
eM12
==
0
.
0
&&
dcmat
.
eM11
==
dcmat
.
eM22
)
{
lf
.
lfHeight
*=
fabs
(
dcmat
.
eM11
);
lf
.
lfWidth
*=
fabs
(
dcmat
.
eM11
);
dcmat
.
eM11
=
dcmat
.
eM22
=
1
.
0
;
}
TRACE
(
"DC transform %f %f %f %f
\n
"
,
dcmat
.
eM11
,
dcmat
.
eM12
,
dcmat
.
eM21
,
dcmat
.
eM22
);
...
...
@@ -4606,9 +4614,8 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
ft_bitmap
.
pixel_mode
=
ft_pixel_mode_mono
;
ft_bitmap
.
buffer
=
buf
;
if
(
needsTransform
)
{
pFT_Outline_Transform
(
&
ft_face
->
glyph
->
outline
,
&
transMat
);
}
if
(
needsTransform
)
pFT_Outline_Transform
(
&
ft_face
->
glyph
->
outline
,
&
transMat
);
pFT_Outline_Translate
(
&
ft_face
->
glyph
->
outline
,
-
left
,
-
bottom
);
...
...
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