mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
minor fix: use already defined variable
This commit is contained in:
parent
a4d5817940
commit
3e3c8c1514
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user