Skip to content

Commit 54251b2

Browse files
committed
X11new port drew left- and right-line attributes one pixel further down than was actually desired. You could get stray pixels that way.
1 parent 08f5256 commit 54251b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

x11new/pdcdisp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp)
172172
{
173173
if( attr_out & A_LEFT)
174174
XDrawLine( dis, win, curr_gc, xpix, ypix - PDC_font_height,
175-
xpix, ypix);
175+
xpix, ypix - 1);
176176
xpix += PDC_font_width - 1;
177177
if( attr_out & A_RIGHT)
178178
XDrawLine( dis, win, curr_gc, xpix, ypix - PDC_font_height,
179-
xpix, ypix);
179+
xpix, ypix - 1);
180180
xpix++;
181181
}
182182
}

0 commit comments

Comments
 (0)