# HG changeset patch # User Eli Zaretskii # Date 1144499185 0 # Node ID 847d1fc86f9d0d906ae7eefcab2f4d709b355376 # Parent 7b92b9902ae2cae8579031065e7a424ec90c0bbd (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos. diff -r 7b92b9902ae2 -r 847d1fc86f9d src/w32fns.c --- a/src/w32fns.c Sat Apr 08 10:45:12 2006 +0000 +++ b/src/w32fns.c Sat Apr 08 12:26:25 2006 +0000 @@ -7668,9 +7668,12 @@ AdjustWindowRect (&rect, f->output_data.w32->dwStyle, FRAME_EXTERNAL_MENU_BAR (f)); - /* Position and size tooltip, and put it in the topmost group. */ + /* Position and size tooltip, and put it in the topmost group. + The add-on of 3 to the 5th argument is a kludge: without it, + some fonts cause the last character of the tip to be truncated, + for some obscure reason. */ SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, - root_x, root_y, rect.right - rect.left, + root_x, root_y, rect.right - rect.left + 3, rect.bottom - rect.top, SWP_NOACTIVATE); /* Ensure tooltip is on top of other topmost windows (eg menus). */