aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-05-04 00:47:52 +0000
committerPo Lu2022-05-04 00:47:52 +0000
commit185c2f1904c457ad043fe28cca915f508569c54a (patch)
treedbce2a8489d14eefa4178d7a6498412898f0071d
parenta1dc1512b357e99e78c6f01a20e483f465de0738 (diff)
downloademacs-185c2f1904c457ad043fe28cca915f508569c54a.tar.gz
emacs-185c2f1904c457ad043fe28cca915f508569c54a.zip
Fix display of placeholder composite string on Haiku
* src/haikuterm.c (haiku_draw_composite_glyph_string_foreground): Correct translation of XDrawRectangle.
-rw-r--r--src/haikuterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/haikuterm.c b/src/haikuterm.c
index 1481d95c087..80c945c7724 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -1351,14 +1351,14 @@ haiku_draw_composite_glyph_string_foreground (struct glyph_string *s)
1351 1351
1352 /* Draw a rectangle for the composition if the font for the very 1352 /* Draw a rectangle for the composition if the font for the very
1353 first character of the composition could not be loaded. */ 1353 first character of the composition could not be loaded. */
1354
1355 if (s->font_not_found_p && !s->cmp_from) 1354 if (s->font_not_found_p && !s->cmp_from)
1356 { 1355 {
1357 if (s->hl == DRAW_CURSOR) 1356 if (s->hl == DRAW_CURSOR)
1358 BView_SetHighColor (view, FRAME_OUTPUT_DATA (s->f)->cursor_fg); 1357 BView_SetHighColor (view, FRAME_OUTPUT_DATA (s->f)->cursor_fg);
1359 else 1358 else
1360 BView_SetHighColor (view, s->face->foreground); 1359 BView_SetHighColor (view, s->face->foreground);
1361 BView_StrokeRectangle (view, s->x, s->y, s->width - 1, s->height - 1); 1360 BView_StrokeRectangle (view, s->x, s->y,
1361 s->width, s->height);
1362 } 1362 }
1363 else if (!s->first_glyph->u.cmp.automatic) 1363 else if (!s->first_glyph->u.cmp.automatic)
1364 { 1364 {