Fix NS fringe bitmap drawing bug (bug#33864)

* src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
correctly.
This commit is contained in:
Alan Third 2018-12-27 16:23:32 +00:00
parent 0c524597b3
commit a731c563a1

View file

@ -2919,7 +2919,7 @@ so some key presses (TAB) are swallowed by the system. */
/* Work out the rectangle we will need to clear. Because we're /* Work out the rectangle we will need to clear. Because we're
compositing rather than blitting, we need to clear the area under compositing rather than blitting, we need to clear the area under
the image regardless of anything else. */ the image regardless of anything else. */
if (!p->overlay_p) if (p->bx >= 0 && !p->overlay_p)
{ {
clearRect = NSMakeRect (p->bx, p->by, p->nx, p->ny); clearRect = NSMakeRect (p->bx, p->by, p->nx, p->ny);
clearRect = NSUnionRect (clearRect, imageRect); clearRect = NSUnionRect (clearRect, imageRect);