various tweaks.

This commit is contained in:
rsc 2003-12-06 18:05:27 +00:00
parent c715a6127a
commit e97ceade5e
10 changed files with 74 additions and 8 deletions

View file

@ -318,7 +318,8 @@ aselect(uint *q0, uint *q1, Image *color)
}
/* clicked inside previous selection */
if(oldq0 <= newq0 && newq0 < oldq1){
/* the "<=" in newq0 <= oldq1 allows us to click the right edge */
if(oldq0 <= newq0 && newq0 <= oldq1){
*q0 = oldq0;
*q1 = oldq1;
return 0;