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
86de76b9
Commit
86de76b9
authored
Feb 25, 2011
by
Alexander Kochetkov
Committed by
Alexandre Julliard
Feb 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix text baseline calculation in compatible mode.
parent
691c37ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
font.c
dlls/gdi32/font.c
+18
-1
No files found.
dlls/gdi32/font.c
View file @
86de76b9
...
...
@@ -2155,6 +2155,12 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
if
(
!
(
tm
.
tmPitchAndFamily
&
TMPF_VECTOR
))
/* Non-scalable fonts shouldn't be rotated */
lf
.
lfEscapement
=
0
;
if
((
dc
->
GraphicsMode
==
GM_COMPATIBLE
)
&&
(
dc
->
vport2WorldValid
&&
dc
->
xformWorld2Vport
.
eM11
*
dc
->
xformWorld2Vport
.
eM22
<
0
))
{
lf
.
lfEscapement
=
-
lf
.
lfEscapement
;
}
if
(
lf
.
lfEscapement
!=
0
)
{
cosEsc
=
cos
(
lf
.
lfEscapement
*
M_PI
/
1800
);
...
...
@@ -2262,7 +2268,18 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
LPtoDP
(
hdc
,
desired
,
2
);
desired
[
1
].
x
-=
desired
[
0
].
x
;
desired
[
1
].
y
-=
desired
[
0
].
y
;
if
(
layout
&
LAYOUT_RTL
)
desired
[
1
].
x
=
-
desired
[
1
].
x
;
if
(
dc
->
GraphicsMode
==
GM_COMPATIBLE
)
{
if
(
dc
->
vport2WorldValid
&&
dc
->
xformWorld2Vport
.
eM11
<
0
)
desired
[
1
].
x
=
-
desired
[
1
].
x
;
if
(
dc
->
vport2WorldValid
&&
dc
->
xformWorld2Vport
.
eM22
<
0
)
desired
[
1
].
y
=
-
desired
[
1
].
y
;
}
else
{
if
(
layout
&
LAYOUT_RTL
)
desired
[
1
].
x
=
-
desired
[
1
].
x
;
}
deltas
[
i
].
x
=
desired
[
1
].
x
-
width
.
x
;
deltas
[
i
].
y
=
desired
[
1
].
y
-
width
.
y
;
...
...
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