Commit ac66c575 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

gdi32: Use the helper function in GetCharABCWidthsFloatA to support DBCS.

parent da76ffa9
......@@ -3005,19 +3005,16 @@ GetCharacterPlacementW(
*/
BOOL WINAPI GetCharABCWidthsFloatA( HDC hdc, UINT first, UINT last, LPABCFLOAT abcf )
{
INT i, wlen, count = (INT)(last - first + 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)(first + i);
str = FONT_GetCharsByRangeA(first, last, &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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment