aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2013-01-04 11:05:33 +0900
committerYAMAMOTO Mitsuharu2013-01-04 11:05:33 +0900
commit4240dd3cef858e4431bb349925c755d793c560b3 (patch)
tree0fc955b3162b59e3d80a439763cc4f10a1386f27 /src
parentf032a318307096c87c4c19928e623e30175d9b1a (diff)
downloademacs-4240dd3cef858e4431bb349925c755d793c560b3.tar.gz
emacs-4240dd3cef858e4431bb349925c755d793c560b3.zip
Don't use previous underline thickness or position if previous underline type is underwave.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsterm.m1
-rw-r--r--src/w32term.c3
-rw-r--r--src/xterm.c3
4 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8699dc12d9b..9e315700e8a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,6 +5,11 @@
5 * xterm.c (x_draw_underwave): Make underwave look more triangular 5 * xterm.c (x_draw_underwave): Make underwave look more triangular
6 and also degrade gracefully for small fonts. (Bug#13000) 6 and also degrade gracefully for small fonts. (Bug#13000)
7 7
8 * nsterm.m (ns_draw_text_decoration):
9 * w32term.c (x_draw_glyph_string):
10 * xterm.c (x_draw_glyph_string): Don't use previous underline
11 thickness and position if previous underline type is underwave.
12
82012-12-31 Glenn Morris <rgm@gnu.org> 132012-12-31 Glenn Morris <rgm@gnu.org>
9 14
10 * keymap.c (Fkey_description): Doc fix. (Bug#13323) 15 * keymap.c (Fkey_description): Doc fix. (Bug#13323)
diff --git a/src/nsterm.m b/src/nsterm.m
index fce43587b11..a57e744d3c2 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2634,6 +2634,7 @@ ns_draw_text_decoration (struct glyph_string *s, struct face *face,
2634 2634
2635 /* If the prev was underlined, match its appearance. */ 2635 /* If the prev was underlined, match its appearance. */
2636 if (s->prev && s->prev->face->underline_p 2636 if (s->prev && s->prev->face->underline_p
2637 && s->prev->face->underline_type == FACE_UNDER_LINE
2637 && s->prev->underline_thickness > 0) 2638 && s->prev->underline_thickness > 0)
2638 { 2639 {
2639 thickness = s->prev->underline_thickness; 2640 thickness = s->prev->underline_thickness;
diff --git a/src/w32term.c b/src/w32term.c
index 84afd8c300b..8b9414b9cfb 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2464,7 +2464,8 @@ x_draw_glyph_string (struct glyph_string *s)
2464 unsigned long thickness, position; 2464 unsigned long thickness, position;
2465 int y; 2465 int y;
2466 2466
2467 if (s->prev && s->prev->face->underline_p) 2467 if (s->prev && s->prev->face->underline_p
2468 && s->prev->face->underline_type == FACE_UNDER_LINE)
2468 { 2469 {
2469 /* We use the same underline style as the previous one. */ 2470 /* We use the same underline style as the previous one. */
2470 thickness = s->prev->underline_thickness; 2471 thickness = s->prev->underline_thickness;
diff --git a/src/xterm.c b/src/xterm.c
index 32b19b5cffb..fb407c87611 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2825,7 +2825,8 @@ x_draw_glyph_string (struct glyph_string *s)
2825 unsigned long thickness, position; 2825 unsigned long thickness, position;
2826 int y; 2826 int y;
2827 2827
2828 if (s->prev && s->prev->face->underline_p) 2828 if (s->prev && s->prev->face->underline_p
2829 && s->prev->face->underline_type == FACE_UNDER_LINE)
2829 { 2830 {
2830 /* We use the same underline style as the previous one. */ 2831 /* We use the same underline style as the previous one. */
2831 thickness = s->prev->underline_thickness; 2832 thickness = s->prev->underline_thickness;