wide glyphs: fixing compilation error following code refactoring

This commit is contained in:
Bakkeby 2024-03-10 10:05:54 +01:00
parent 3564593563
commit f87d3de2cf
1 changed files with 2 additions and 2 deletions

4
x.c
View File

@ -2976,7 +2976,7 @@ xdrawline(Line line, int x1, int y1, int x2)
new.mode ^= ATTR_REVERSE; new.mode ^= ATTR_REVERSE;
#endif // SELECTION_COLORS_PATCH #endif // SELECTION_COLORS_PATCH
if (i > 0 && ATTRCMP(base, new)) { if (i > 0 && ATTRCMP(base, new)) {
xdrawglyphfontspecs(specs, base, i, ox, y1, dmode); xdrawglyphfontspecs(specs, base, i, ox, y1, dmode, x - ox);
specs += i; specs += i;
numspecs -= i; numspecs -= i;
i = 0; i = 0;
@ -2988,7 +2988,7 @@ xdrawline(Line line, int x1, int y1, int x2)
i++; i++;
} }
if (i > 0) if (i > 0)
xdrawglyphfontspecs(specs, base, i, ox, y1, dmode); xdrawglyphfontspecs(specs, base, i, ox, y1, dmode, x2 - ox);
} }
} }
#else // !WIDE_GLYPHS_PATCH and !LIGATURES_PATCH #else // !WIDE_GLYPHS_PATCH and !LIGATURES_PATCH