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
9bee50f6
Commit
9bee50f6
authored
May 05, 2010
by
Huw Davies
Committed by
Alexandre Julliard
May 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix ExtTextOutA -> W forwarding when ETO_PDY is set.
parent
6b21d0c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
font.c
dlls/gdi32/font.c
+20
-4
No files found.
dlls/gdi32/font.c
View file @
9bee50f6
...
@@ -1586,12 +1586,28 @@ BOOL WINAPI ExtTextOutA( HDC hdc, INT x, INT y, UINT flags,
...
@@ -1586,12 +1586,28 @@ BOOL WINAPI ExtTextOutA( HDC hdc, INT x, INT y, UINT flags,
if
(
lpDx
)
{
if
(
lpDx
)
{
unsigned
int
i
=
0
,
j
=
0
;
unsigned
int
i
=
0
,
j
=
0
;
lpDxW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
wlen
*
sizeof
(
INT
));
/* allocate enough for a ETO_PDY */
lpDxW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
2
*
wlen
*
sizeof
(
INT
));
while
(
i
<
count
)
{
while
(
i
<
count
)
{
if
(
IsDBCSLeadByteEx
(
codepage
,
str
[
i
]))
{
if
(
IsDBCSLeadByteEx
(
codepage
,
str
[
i
]))
lpDxW
[
j
++
]
=
lpDx
[
i
]
+
lpDx
[
i
+
1
];
{
if
(
flags
&
ETO_PDY
)
{
lpDxW
[
j
++
]
=
lpDx
[
i
*
2
]
+
lpDx
[(
i
+
1
)
*
2
];
lpDxW
[
j
++
]
=
lpDx
[
i
*
2
+
1
]
+
lpDx
[(
i
+
1
)
*
2
+
1
];
}
else
lpDxW
[
j
++
]
=
lpDx
[
i
]
+
lpDx
[
i
+
1
];
i
=
i
+
2
;
i
=
i
+
2
;
}
else
{
}
else
{
if
(
flags
&
ETO_PDY
)
{
lpDxW
[
j
++
]
=
lpDx
[
i
*
2
];
lpDxW
[
j
++
]
=
lpDx
[
i
*
2
+
1
];
}
else
lpDxW
[
j
++
]
=
lpDx
[
i
];
lpDxW
[
j
++
]
=
lpDx
[
i
];
i
=
i
+
1
;
i
=
i
+
1
;
}
}
...
...
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