mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-07 16:10:46 -08:00
Prevent overlapping sections of glyphs from being misaligned
* src/xdisp.c (gui_fix_overlapping_area): Offset all glyphs by ROW->x.
This commit is contained in:
parent
2bbd50a03d
commit
4ffd16b8e5
1 changed files with 7 additions and 2 deletions
|
|
@ -33565,13 +33565,18 @@ notice_overwritten_cursor (struct window *w, enum glyph_row_area area,
|
|||
|
||||
void
|
||||
gui_fix_overlapping_area (struct window *w, struct glyph_row *row,
|
||||
enum glyph_row_area area, int overlaps)
|
||||
enum glyph_row_area area, int overlaps)
|
||||
{
|
||||
int i, x;
|
||||
|
||||
block_input ();
|
||||
|
||||
x = 0;
|
||||
/* row->x might be smaller than zero when produced from an iterator
|
||||
under horizontal scrolling. Offset all measurements by this
|
||||
basic value, lest hscrolled text with overlaps be displayed with
|
||||
its overlapping portions misaligned. */
|
||||
x = row->x;
|
||||
|
||||
for (i = 0; i < row->used[area];)
|
||||
{
|
||||
if (row->glyphs[area][i].overlaps_vertically_p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue