mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
term_bg_rgb8: fix longstanding FIXME now that we detect the bg #1292
This commit is contained in:
parent
302d69289a
commit
f8ca942d84
@ -706,7 +706,11 @@ term_bg_rgb8(const tinfo* ti, FILE* out, unsigned r, unsigned g, unsigned b){
|
||||
if((r == (ti->bg_collides_default & 0xff0000lu)) &&
|
||||
(g == (ti->bg_collides_default & 0xff00lu)) &&
|
||||
(b == (ti->bg_collides_default & 0xfflu))){
|
||||
++b; // what if it's 255 FIXME
|
||||
if(b < 255){
|
||||
++b;
|
||||
}else{
|
||||
--b;
|
||||
}
|
||||
}
|
||||
}
|
||||
return term_esc_rgb(out, false, r, g, b);
|
||||
|
Loading…
Reference in New Issue
Block a user