diff options
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c index 403cec7db7e..57f27d70e4d 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -87,6 +87,10 @@ static int any_help_event_p; | |||
| 87 | /* Last window where we saw the mouse. Used by mouse-autoselect-window. */ | 87 | /* Last window where we saw the mouse. Used by mouse-autoselect-window. */ |
| 88 | static Lisp_Object last_window; | 88 | static Lisp_Object last_window; |
| 89 | 89 | ||
| 90 | /* Non-zero means make use of UNDERLINE_POSITION font properties. | ||
| 91 | (Not yet supported, see TODO in x_draw_glyph_string.) */ | ||
| 92 | int x_use_underline_position_properties; | ||
| 93 | |||
| 90 | extern unsigned int msh_mousewheel; | 94 | extern unsigned int msh_mousewheel; |
| 91 | 95 | ||
| 92 | extern void free_frame_menubar (); | 96 | extern void free_frame_menubar (); |
| @@ -2488,7 +2492,9 @@ x_draw_glyph_string (s) | |||
| 2488 | unsigned long dy = s->height - h; | 2492 | unsigned long dy = s->height - h; |
| 2489 | 2493 | ||
| 2490 | /* TODO: Use font information for positioning and thickness | 2494 | /* TODO: Use font information for positioning and thickness |
| 2491 | of underline. See OUTLINETEXTMETRIC, and xterm.c. */ | 2495 | of underline. See OUTLINETEXTMETRIC, and xterm.c. |
| 2496 | Note: If you make this work, don't forget to change the | ||
| 2497 | doc string of x-use-underline-position-properties below. */ | ||
| 2492 | if (s->face->underline_defaulted_p) | 2498 | if (s->face->underline_defaulted_p) |
| 2493 | { | 2499 | { |
| 2494 | w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, | 2500 | w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, |
| @@ -6537,6 +6543,18 @@ the cursor have no effect. */); | |||
| 6537 | &w32_use_visible_system_caret, 0)) | 6543 | &w32_use_visible_system_caret, 0)) |
| 6538 | w32_use_visible_system_caret = 0; | 6544 | w32_use_visible_system_caret = 0; |
| 6539 | 6545 | ||
| 6546 | /* We don't yet support this, but defining this here avoids whining | ||
| 6547 | from cus-start.el and other places, like "M-x set-variable". */ | ||
| 6548 | DEFVAR_BOOL ("x-use-underline-position-properties", | ||
| 6549 | &x_use_underline_position_properties, | ||
| 6550 | doc: /* *Non-nil means make use of UNDERLINE_POSITION font properties. | ||
| 6551 | nil means ignore them. If you encounter fonts with bogus | ||
| 6552 | UNDERLINE_POSITION font properties, for example 7x13 on XFree prior | ||
| 6553 | to 4.1, set this to nil. | ||
| 6554 | |||
| 6555 | NOTE: Not supported on MS-Windows yet. */); | ||
| 6556 | x_use_underline_position_properties = 0; | ||
| 6557 | |||
| 6540 | DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, | 6558 | DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, |
| 6541 | doc: /* If not nil, Emacs uses toolkit scroll bars. */); | 6559 | doc: /* If not nil, Emacs uses toolkit scroll bars. */); |
| 6542 | Vx_toolkit_scroll_bars = Qt; | 6560 | Vx_toolkit_scroll_bars = Qt; |