diff options
| author | Jason Rumney | 2002-02-09 01:31:07 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-02-09 01:31:07 +0000 |
| commit | d65a9cdc6bd19f02980c00a30dc3cc2c13b41c90 (patch) | |
| tree | 176fe20e36cda83cba14a9b49337b7f41c040cd5 /src | |
| parent | 3acfb461ae8abbc06794220feee342abc169453e (diff) | |
| download | emacs-d65a9cdc6bd19f02980c00a30dc3cc2c13b41c90.tar.gz emacs-d65a9cdc6bd19f02980c00a30dc3cc2c13b41c90.zip | |
(w32_load_system_font): Prevent Cleartype fonts from loading.
(Fx_show_tip): Ensure tip frames are above other topmost windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index a269645c241..d7e0f7bcd0f 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -5816,6 +5816,10 @@ w32_load_system_font (f,fontname,size) | |||
| 5816 | ended up with. */ | 5816 | ended up with. */ |
| 5817 | return NULL; | 5817 | return NULL; |
| 5818 | 5818 | ||
| 5819 | /* Specify anti-aliasing to prevent Cleartype fonts being used, | ||
| 5820 | since those fonts leave garbage behind. */ | ||
| 5821 | lf.lfQuality = ANTIALIASED_QUALITY; | ||
| 5822 | |||
| 5819 | font = (XFontStruct *) xmalloc (sizeof (XFontStruct)); | 5823 | font = (XFontStruct *) xmalloc (sizeof (XFontStruct)); |
| 5820 | bzero (font, sizeof (*font)); | 5824 | bzero (font, sizeof (*font)); |
| 5821 | 5825 | ||
| @@ -13708,9 +13712,17 @@ Text larger than the specified size is clipped. */) | |||
| 13708 | BLOCK_INPUT; | 13712 | BLOCK_INPUT; |
| 13709 | compute_tip_xy (f, parms, dx, dy, PIXEL_WIDTH (f), | 13713 | compute_tip_xy (f, parms, dx, dy, PIXEL_WIDTH (f), |
| 13710 | PIXEL_HEIGHT (f), &root_x, &root_y); | 13714 | PIXEL_HEIGHT (f), &root_x, &root_y); |
| 13715 | |||
| 13716 | /* Put tooltip in topmost group and in position. */ | ||
| 13711 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, | 13717 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, |
| 13712 | root_x, root_y, 0, 0, | 13718 | root_x, root_y, 0, 0, |
| 13713 | SWP_NOSIZE | SWP_NOACTIVATE); | 13719 | SWP_NOSIZE | SWP_NOACTIVATE); |
| 13720 | |||
| 13721 | /* Ensure tooltip is on top of other topmost windows (eg menus). */ | ||
| 13722 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP, | ||
| 13723 | 0, 0, 0, 0, | ||
| 13724 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); | ||
| 13725 | |||
| 13714 | UNBLOCK_INPUT; | 13726 | UNBLOCK_INPUT; |
| 13715 | goto start_timer; | 13727 | goto start_timer; |
| 13716 | } | 13728 | } |
| @@ -13828,10 +13840,16 @@ Text larger than the specified size is clipped. */) | |||
| 13828 | AdjustWindowRect (&rect, f->output_data.w32->dwStyle, | 13840 | AdjustWindowRect (&rect, f->output_data.w32->dwStyle, |
| 13829 | FRAME_EXTERNAL_MENU_BAR (f)); | 13841 | FRAME_EXTERNAL_MENU_BAR (f)); |
| 13830 | 13842 | ||
| 13843 | /* Position and size tooltip, and put it in the topmost group. */ | ||
| 13831 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, | 13844 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, |
| 13832 | root_x, root_y, rect.right - rect.left, | 13845 | root_x, root_y, rect.right - rect.left, |
| 13833 | rect.bottom - rect.top, SWP_NOACTIVATE); | 13846 | rect.bottom - rect.top, SWP_NOACTIVATE); |
| 13834 | 13847 | ||
| 13848 | /* Ensure tooltip is on top of other topmost windows (eg menus). */ | ||
| 13849 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP, | ||
| 13850 | 0, 0, 0, 0, | ||
| 13851 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); | ||
| 13852 | |||
| 13835 | /* Let redisplay know that we have made the frame visible already. */ | 13853 | /* Let redisplay know that we have made the frame visible already. */ |
| 13836 | f->async_visible = 1; | 13854 | f->async_visible = 1; |
| 13837 | 13855 | ||