fix bug reported in Issue #96

This commit is contained in:
Vincent Wei
2022-11-07 19:59:54 +08:00
parent 0d170a6f74
commit 9b89614569
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -578,6 +578,9 @@ int GUIAPI GetTabbedTextExtentPoint (HDC hdc, const char* text,
ach = devfont->charset_ops->get_char_value
(NULL, 0, (const unsigned char*)text, len_cur_char);
char_type = devfont->charset_ops->char_type (ach);
if (devfont == mbc_devfont)
ach = SET_MBCHV(ach);
gv = GetGlyphValueAlt(log_font, ach);
switch (char_type & ACHARTYPE_BASIC_MASK) {
+1
View File
@@ -476,6 +476,7 @@ int GUIAPI GetTextExtentPoint (HDC hdc, const char* text, int len,
chv = (*mbc_devfont->charset_ops->get_char_value)(NULL,
0, (const unsigned char*)text, 0);
chv = SET_MBCHV(chv);
gv = GetGlyphValueAlt(pdc->pLogFont, chv);
advance_cur_char = _gdi_get_glyph_advance (pdc, gv,