minor fix: use already defined variable

This commit is contained in:
José Luis Cruz 2020-08-18 14:09:01 +02:00 committed by GitHub
parent a4d5817940
commit 3e3c8c1514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1717,7 +1717,7 @@ channels_blend(unsigned c1, unsigned c2, unsigned* blends){
bool c2default = channel_default_p(c2); bool c2default = channel_default_p(c2);
if(*blends == 0){ if(*blends == 0){
// don't just return c2, or you set wide status and all kinds of crap // don't just return c2, or you set wide status and all kinds of crap
if(channel_default_p(c2)){ if(c2default){
channel_set_default(&c1); channel_set_default(&c1);
}else{ }else{
channel_set_rgb(&c1, rsum, gsum, bsum); channel_set_rgb(&c1, rsum, gsum, bsum);