Remove cast, and actually convert char. npodb

This commit is contained in:
dougt%meer.net 2005-07-25 16:03:38 +00:00
Родитель 0091a72ca7
Коммит 67004acb0b
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1957,16 +1957,16 @@ MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA(HDC hdc, LPTEXTMETRICA lptma)
lptma->tmOverhang = tmw.tmOverhang;
lptma->tmDigitizedAspectX = tmw.tmDigitizedAspectX;
lptma->tmDigitizedAspectY = tmw.tmDigitizedAspectY;
lptma->tmFirstChar = (char)tmw.tmFirstChar;
lptma->tmLastChar = (char)tmw.tmLastChar;
lptma->tmDefaultChar = (char)tmw.tmDefaultChar;
lptma->tmBreakChar = (char)tmw.tmBreakChar;
lptma->tmItalic = tmw.tmItalic;
lptma->tmUnderlined = tmw.tmUnderlined;
lptma->tmStruckOut = tmw.tmStruckOut;
lptma->tmPitchAndFamily = tmw.tmPitchAndFamily;
lptma->tmCharSet = tmw.tmCharSet;
w2a_buffer(&tmw.tmFirstChar, 1, &lptma->tmFirstChar, 1);
w2a_buffer(&tmw.tmDefaultChar, 1, &lptma->tmDefaultChar, 1);
w2a_buffer(&tmw.tmBreakChar, 1, &lptma->tmBreakChar, 1);
return res;
}