Correct display of stretch glyphs within hscrolled windows
* src/haikuterm.c (haiku_draw_glyphless_glyph_string_foreground): Make char2b static, stifling a GCC warning. (haiku_draw_stretch_glyph_string): Use computed X if s->x is outside the confines of the text area.
This commit is contained in:
parent
55dd110cf3
commit
4d06a9faff
1 changed files with 2 additions and 2 deletions
|
@ -1219,7 +1219,7 @@ static void
|
|||
haiku_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
|
||||
{
|
||||
struct glyph *glyph = s->first_glyph;
|
||||
unsigned char2b[8];
|
||||
static unsigned char2b[8];
|
||||
int x, i, j;
|
||||
struct face *face = s->face;
|
||||
unsigned long color;
|
||||
|
@ -1399,7 +1399,7 @@ haiku_draw_stretch_glyph_string (struct glyph_string *s)
|
|||
}
|
||||
|
||||
if (background_width > 0)
|
||||
haiku_draw_background_rect (s, s->face, s->x, s->y,
|
||||
haiku_draw_background_rect (s, s->face, x, s->y,
|
||||
background_width, s->height);
|
||||
}
|
||||
s->background_filled_p = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue