Correct off-by-one in drawing of selection rectangle.
This commit is contained in:
parent
4515a3d9a4
commit
5cb724cecc
2
canvas.C
2
canvas.C
|
@ -338,7 +338,7 @@ Canvas::flip ( void )
|
||||||
/* draw selection rect */
|
/* draw selection rect */
|
||||||
if ( m.p3 != m.p4 )
|
if ( m.p3 != m.p4 )
|
||||||
if ( y + m.vp->y >= m.p3 && x + m.vp->x >= m.p1 &&
|
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;
|
c->flags |= F_SELECTION;
|
||||||
|
|
||||||
if ( *c != *p )
|
if ( *c != *p )
|
||||||
|
|
Loading…
Reference in New Issue