mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Fix some errors in stretch glyphs code on PGTK
* src/pgtkterm.c (x_draw_stretch_glyph_string): Remove unnecessary code. Reported by Eli Zaretskii <eliz@gnu.org>.
This commit is contained in:
parent
33958bcd3d
commit
f685bcb65d
@ -2373,27 +2373,16 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
|
||||
else if (!s->background_filled_p)
|
||||
{
|
||||
int background_width = s->background_width;
|
||||
int x = s->x, text_left_x = window_box_left_offset (s->w, TEXT_AREA);
|
||||
int x = s->x, text_left_x = window_box_left (s->w, TEXT_AREA);
|
||||
|
||||
/* Don't draw into left fringe or scrollbar area except for
|
||||
header line and mode line. */
|
||||
if (x < text_left_x && !s->row->mode_line_p)
|
||||
header line and mode line. */
|
||||
if (s->area == TEXT_AREA
|
||||
&& x < text_left_x && !s->row->mode_line_p)
|
||||
{
|
||||
int background_width = s->background_width;
|
||||
int x = s->x, text_left_x = window_box_left (s->w, TEXT_AREA);
|
||||
|
||||
/* Don't draw into left fringe or scrollbar area except for
|
||||
header line and mode line. */
|
||||
if (s->area == TEXT_AREA
|
||||
&& x < text_left_x && !s->row->mode_line_p)
|
||||
{
|
||||
background_width -= text_left_x - x;
|
||||
x = text_left_x;
|
||||
}
|
||||
if (background_width > 0)
|
||||
x_draw_glyph_string_bg_rect (s, x, s->y, background_width, s->height);
|
||||
background_width -= text_left_x - x;
|
||||
x = text_left_x;
|
||||
}
|
||||
|
||||
if (background_width > 0)
|
||||
x_draw_glyph_string_bg_rect (s, x, s->y, background_width, s->height);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user