Skip to content

Commit

Permalink
fix bug reported in Issue #96
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentWei committed Nov 7, 2022
1 parent 0d170a6 commit 9b89614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/newgdi/tabbedtextout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/newgdi/textout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b89614

Please sign in to comment.