summaryrefslogtreecommitdiff
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>1970-01-01 00:00:00 +0000
committerPo Lu <luangruo@yahoo.com>2024-04-28 11:58:54 +0800
commite844b81c56d74aa2b2efa0ce98ed3de71647e656 (patch)
tree0dd2259e464b4c8bc0c80efbdad27dfa6abfd915 /src/dispextern.h
parent77a170a175dfeb17dab23e41668b8497b8b3b9d7 (diff)
downloademacs-e844b81c56d74aa2b2efa0ce98ed3de71647e656.tar.gz
Implement dots and dashes on X
* src/dispextern.h (enum face_underline_type): Indent and expand commentary as to the new dependency on the order of its enumerals. * src/xfaces.c (realize_gui_face): Enable dots and dashes on window systems. * src/xterm.c (x_draw_underwave): Don't define unused variable on Cairo builds. (x_draw_dash): New function; implement for X and Cairo. (x_fill_underline): New function. Delegate to x_fill_rectangle or x_draw_dash as appropriate. (x_draw_glyph_string): Call x_fill_underline rather than x_fill_rectangle.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 1614a044cbf..93cbde6583d 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1697,7 +1697,9 @@ enum face_box_type
enum face_underline_type
{
- /* Note: Order matches the order of the Smulx terminfo extension. */
+ /* Note: order matches the order of the Smulx terminfo extension, and
+ is also relied on to remain in its present order by
+ x_draw_glyph_string and company. */
FACE_NO_UNDERLINE = 0,
FACE_UNDERLINE_SINGLE,
FACE_UNDERLINE_DOUBLE_LINE,