[ros-diffs] [cfinck] 36329: 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 :-)

cfinck at svn.reactos.org cfinck at svn.reactos.org
Fri Sep 19 17:11:09 CEST 2008


Author: cfinck
Date: Fri Sep 19 10:11:09 2008
New Revision: 36329

URL: http://svn.reactos.org/svn/reactos?rev=36329&view=rev
Log:
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 :-)

Modified:
    trunk/reactos/dll/win32/user32/windows/font.c

Modified: trunk/reactos/dll/win32/user32/windows/font.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/font.c?rev=36329&r1=36328&r2=36329&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/font.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/font.c [iso-8859-1] Fri Sep 19 10:11:09 2008
@@ -1165,7 +1165,7 @@
                                  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;



More information about the Ros-diffs mailing list