mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
directmode render: update outy following a scaling #1673
This commit is contained in:
parent
3475a9d59b
commit
def4f5fd17
@ -557,6 +557,7 @@ ncdirect_render_visual(ncdirect* n, ncvisual* ncv, ncblitter_e blitfxn,
|
||||
}
|
||||
if(scale == NCSCALE_SCALE || scale == NCSCALE_SCALE_HIRES){
|
||||
scale_visual(ncv, &disprows, &dispcols);
|
||||
outy = disprows;
|
||||
if(bset->geom == NCBLIT_PIXEL){
|
||||
clamp_to_sixelmax(&n->tcache, &disprows, &dispcols, &outy, scale);
|
||||
}
|
||||
@ -577,7 +578,7 @@ ncdirect_render_visual(ncdirect* n, ncvisual* ncv, ncblitter_e blitfxn,
|
||||
}
|
||||
}
|
||||
//fprintf(stderr, "max: %d/%d out: %d/%d\n", ymax, xmax, outy, dispcols);
|
||||
//fprintf(stderr, "render: %d/%d stride %u %p\n", ncv->pixy, ncv->pixx, ncv->pixytride, ncv->data);
|
||||
//fprintf(stderr, "render: %d/%d stride %u %p\n", ncv->pixy, ncv->pixx, ncv->rowstride, ncv->data);
|
||||
ncplane_options nopts = {
|
||||
.y = 0,
|
||||
.x = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user