Skip to content

Commit

Permalink
ncplane_from_rgba: correct scaling for 3x2/2x2/braille #1490
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jun 1, 2021
1 parent 3e38d24 commit b1c0ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/notcurses.c
Original file line number Diff line number Diff line change
Expand Up @@ -2710,9 +2710,9 @@ fprintf(stderr, "%d/%d (%d/%d): [%s] %d %d %d %d\n", y, x, leny, lenx, c, idx, f
// handle each destination pixel from this cell
for(int py = 0 ; py < bset->height ; ++py){
for(int px = 0 ; px < bset->width ; ++px){
uint32_t* p = &ret[(targy + py) * lenx + (targx + px)];
uint32_t* p = &ret[(targy + py) * (lenx * bset->width) + (targx + px)];
bool background = is_bg_p(idx, py, px, bset->width);
fprintf(stderr, "py/px: %d/%d is_bg_p: %u\n", py, px, background);
fprintf(stderr, "py/px: %d/%d is_bg_p: %u p: %d\n", py, px, background, (targy + py) * (lenx * bset->width) + (targx + px));
if(background){
if(ba){
*p = 0;
Expand Down

0 comments on commit b1c0ce6

Please sign in to comment.