ncplane_as_rgba_internal(): always initialize to calm scan-build

This commit is contained in:
nick black 2025-01-22 02:01:49 -05:00
parent f041f95375
commit 73e834438f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -3186,19 +3186,16 @@ ncplane_as_rgba_internal(const ncplane* nc, ncblitter_e blit,
for(unsigned px = 0 ; px < bset->width ; ++px){
uint32_t* p = &ret[(targy + py) * (lenx * bset->width) + (targx + px)];
bool background = is_bg_p(idx, py, px, bset->width);
if(background){
if(ba){
*p = 0;
}else{
if(background){
if(!ba){
ncpixel_set_a(p, 0xff);
ncpixel_set_r(p, br);
ncpixel_set_g(p, bb);
ncpixel_set_b(p, bg);
}
}else{
if(fa){
*p = 0;
}else{
if(!fa){
ncpixel_set_a(p, 0xff);
ncpixel_set_r(p, fr);
ncpixel_set_g(p, fb);