]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix glyphless glyph display on Haiku
authorPo Lu <luangruo@yahoo.com>
Tue, 3 May 2022 03:18:11 +0000 (03:18 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 3 May 2022 03:18:11 +0000 (03:18 +0000)
* src/haikuterm.c
(haiku_draw_glyphless_glyph_string_foreground): Fix rectangle
width.

src/haikuterm.c

index bdec82db7abd17748c75f6dbc1336bf99a8ff2af..1481d95c0879b6983841277c63f5e4cf540ed8d6 100644 (file)
@@ -1180,8 +1180,8 @@ haiku_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
          BView_SetPenSize (FRAME_HAIKU_VIEW (s->f), 1);
          BView_StrokeRectangle (FRAME_HAIKU_VIEW (s->f),
                                 x, s->ybase - glyph->ascent,
-                                glyph->pixel_width - 1,
-                                glyph->ascent + glyph->descent - 1);
+                                glyph->pixel_width,
+                                glyph->ascent + glyph->descent);
        }
       x += glyph->pixel_width;
    }