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
69d5a561
Commit
69d5a561
authored
Jun 17, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix the sign of the vertical text position in ExtTextOutW.
parent
30feb19d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
font.c
dlls/gdi32/font.c
+7
-7
No files found.
dlls/gdi32/font.c
View file @
69d5a561
...
...
@@ -1935,7 +1935,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
if
(
align
&
TA_UPDATECP
)
{
pt
.
x
=
x
+
width
.
x
;
pt
.
y
=
y
-
width
.
y
;
pt
.
y
=
y
+
width
.
y
;
DPtoLP
(
hdc
,
&
pt
,
1
);
MoveToEx
(
hdc
,
pt
.
x
,
pt
.
y
,
NULL
);
}
...
...
@@ -1943,12 +1943,12 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
case
TA_CENTER
:
x
-=
width
.
x
/
2
;
y
+
=
width
.
y
/
2
;
y
-
=
width
.
y
/
2
;
break
;
case
TA_RIGHT
:
x
-=
width
.
x
;
y
+
=
width
.
y
;
y
-
=
width
.
y
;
if
(
align
&
TA_UPDATECP
)
{
pt
.
x
=
x
;
...
...
@@ -2129,7 +2129,7 @@ done:
pts
[
0
].
x
=
x
-
underlinePos
*
sinEsc
;
pts
[
0
].
y
=
y
-
underlinePos
*
cosEsc
;
pts
[
1
].
x
=
x
+
width
.
x
-
underlinePos
*
sinEsc
;
pts
[
1
].
y
=
y
-
width
.
y
-
underlinePos
*
cosEsc
;
pts
[
1
].
y
=
y
+
width
.
y
-
underlinePos
*
cosEsc
;
pts
[
2
].
x
=
pts
[
1
].
x
+
underlineWidth
*
sinEsc
;
pts
[
2
].
y
=
pts
[
1
].
y
+
underlineWidth
*
cosEsc
;
pts
[
3
].
x
=
pts
[
0
].
x
+
underlineWidth
*
sinEsc
;
...
...
@@ -2145,7 +2145,7 @@ done:
pts
[
0
].
x
=
x
-
strikeoutPos
*
sinEsc
;
pts
[
0
].
y
=
y
-
strikeoutPos
*
cosEsc
;
pts
[
1
].
x
=
x
+
width
.
x
-
strikeoutPos
*
sinEsc
;
pts
[
1
].
y
=
y
-
width
.
y
-
strikeoutPos
*
cosEsc
;
pts
[
1
].
y
=
y
+
width
.
y
-
strikeoutPos
*
cosEsc
;
pts
[
2
].
x
=
pts
[
1
].
x
+
strikeoutWidth
*
sinEsc
;
pts
[
2
].
y
=
pts
[
1
].
y
+
strikeoutWidth
*
cosEsc
;
pts
[
3
].
x
=
pts
[
0
].
x
+
strikeoutWidth
*
sinEsc
;
...
...
@@ -2172,7 +2172,7 @@ done:
pts
[
0
].
x
=
x
;
pts
[
0
].
y
=
y
;
pts
[
1
].
x
=
x
+
width
.
x
;
pts
[
1
].
y
=
y
-
width
.
y
;
pts
[
1
].
y
=
y
+
width
.
y
;
DPtoLP
(
hdc
,
pts
,
2
);
MoveToEx
(
hdc
,
pts
[
0
].
x
-
underlinePos
*
sinEsc
,
pts
[
0
].
y
-
underlinePos
*
cosEsc
,
&
oldpt
);
LineTo
(
hdc
,
pts
[
1
].
x
-
underlinePos
*
sinEsc
,
pts
[
1
].
y
-
underlinePos
*
cosEsc
);
...
...
@@ -2187,7 +2187,7 @@ done:
pts
[
0
].
x
=
x
;
pts
[
0
].
y
=
y
;
pts
[
1
].
x
=
x
+
width
.
x
;
pts
[
1
].
y
=
y
-
width
.
y
;
pts
[
1
].
y
=
y
+
width
.
y
;
DPtoLP
(
hdc
,
pts
,
2
);
MoveToEx
(
hdc
,
pts
[
0
].
x
-
strikeoutPos
*
sinEsc
,
pts
[
0
].
y
-
strikeoutPos
*
cosEsc
,
&
oldpt
);
LineTo
(
hdc
,
pts
[
1
].
x
-
strikeoutPos
*
sinEsc
,
pts
[
1
].
y
-
strikeoutPos
*
cosEsc
);
...
...
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