silence -Wmaybe-uninitialized through ...whitespace? :/

pull/108/head
nick black 5 years ago
parent 35badf8ae7
commit f83987711c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1132,8 +1132,10 @@ int notcurses_render(notcurses* nc){
// we can elide the foreground set iff the previous used fg and matched
if(!cell_fg_default_p(c)){
cell_get_fg(c, &r, &g, &b);
if(fgelidable && lastr == r && lastg == g && lastb == b){
++fgelisions;
if(fgelidable){
if(lastr == r && lastg == g && lastb == b){
++fgelisions;
}
}else{
term_fg_rgb8(nc, out, r, g, b);
++fgemissions;
@ -1144,8 +1146,10 @@ int notcurses_render(notcurses* nc){
}
if(!cell_bg_default_p(c)){
cell_get_bg(c, &br, &bg, &bb);
if(bgelidable && lastbr == br && lastbg == bg && lastbb == bb){
++bgelisions;
if(bgelidable){
if(lastbr == br && lastbg == bg && lastbb == bb){
++bgelisions;
}
}else{
term_bg_rgb8(nc, out, br, bg, bb);
++bgemissions;

Loading…
Cancel
Save