Revert the aesthetic hack of r27608

We used Bitstream/DejaVu fonts for everything at that time, but the current Tahoma font doesn't need this hack.
This way, all window controls with mnemonic keys have the underscore placed as under Windows :-)

svn path=/trunk/; revision=36329
This commit is contained in:
Colin Finck 2008-09-19 15:11:09 +00:00
parent b4c9d9e321
commit 773113715b

View file

@ -1165,7 +1165,7 @@ DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
rect, str, len_seg, NULL )) return 0;
if (prefix_offset != -1 && prefix_offset < len_seg && !(flags & DT_HIDEPREFIX))
{
TEXT_DrawUnderscore (hdc, xseg, y + tm.tmAscent + 2, str, prefix_offset, (flags & DT_NOCLIP) ? NULL : rect);
TEXT_DrawUnderscore (hdc, xseg, y + tm.tmAscent + 1, str, prefix_offset, (flags & DT_NOCLIP) ? NULL : rect);
}
len -= len_seg;
str += len_seg;