Correct off-by-one in drawing of selection rectangle.

This commit is contained in:
Jonathan Moore Liles 2008-02-14 23:29:12 -06:00
parent 4515a3d9a4
commit 5cb724cecc
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ Canvas::flip ( void )
/* draw selection rect */
if ( m.p3 != m.p4 )
if ( y + m.vp->y >= m.p3 && x + m.vp->x >= m.p1 &&
y + m.vp->y < m.p4 && x + m.vp->x < m.p2 )
y + m.vp->y <= m.p4 && x + m.vp->x < m.p2 )
c->flags |= F_SELECTION;
if ( *c != *p )