mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 11:07:54 +08:00
fix bug reported in Issue #96
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user