maxcolor: fix direction switch

This commit is contained in:
nick black 2019-12-25 06:55:15 -05:00
parent 63ada9289c
commit 4d877603c3
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -55,7 +55,7 @@ slideitslideit(struct notcurses* nc, struct ncplane* n, uint64_t deadline,
}else if(xoff == dimx - nx){
--xoff;
if(*direction == 1){
*direction = 2;
*direction = 0;
}else if(*direction == 2){
*direction = 3;
}