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
da76ffa9
Commit
da76ffa9
authored
Jan 16, 2011
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use the helper function in GetCharWidth32A to support DBCS.
parent
b9c41636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
font.c
dlls/gdi32/font.c
+5
-7
No files found.
dlls/gdi32/font.c
View file @
da76ffa9
...
...
@@ -1615,18 +1615,16 @@ BOOL WINAPI GetCharWidth32W( HDC hdc, UINT firstChar, UINT lastChar,
BOOL
WINAPI
GetCharWidth32A
(
HDC
hdc
,
UINT
firstChar
,
UINT
lastChar
,
LPINT
buffer
)
{
INT
i
,
wlen
,
count
=
(
INT
)(
lastChar
-
firstChar
+
1
)
;
INT
i
,
wlen
;
LPSTR
str
;
LPWSTR
wstr
;
BOOL
ret
=
TRUE
;
if
(
count
<=
0
)
return
FALSE
;
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
str
[
i
]
=
(
BYTE
)(
firstChar
+
i
);
str
=
FONT_GetCharsByRangeA
(
firstChar
,
lastChar
,
&
i
);
if
(
str
==
NULL
)
return
FALSE
;
wstr
=
FONT_mbtowc
(
hdc
,
str
,
count
,
&
wlen
,
NULL
);
wstr
=
FONT_mbtowc
(
hdc
,
str
,
i
,
&
wlen
,
NULL
);
for
(
i
=
0
;
i
<
wlen
;
i
++
)
{
...
...
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