various tweaks.
This commit is contained in:
parent
c715a6127a
commit
e97ceade5e
10 changed files with 74 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue