summaryrefslogtreecommitdiff
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2006-04-08 12:27:13 +0000
committerEli Zaretskii <eliz@gnu.org>2006-04-08 12:27:13 +0000
commit1d79e5217cd7996967fef3896357600b6fa7a5bf (patch)
treec60ed6e44b0bf9011fefb9827d69c4c9eb5a5754 /src/w32fns.c
parentcf5cbca4a279ad0da225023134c217f816b25e94 (diff)
downloademacs-1d79e5217cd7996967fef3896357600b6fa7a5bf.tar.gz
(Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 55f4af03d6e..1cc3dc2800c 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7668,9 +7668,12 @@ Text larger than the specified size is clipped. */)
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). */