diff --git a/src/demo/yield.c b/src/demo/yield.c index 9735ce6b5..ce27733fd 100644 --- a/src/demo/yield.c +++ b/src/demo/yield.c @@ -164,6 +164,11 @@ int yield_demo(struct notcurses* nc){ const bool bitmaps = notcurses_canpixel(nc); struct ncplane_options nopts = { .y = 1, + // this chops one line off the bottom that we could use in the case + // of kitty graphics (xterm can't draw on the bottom row without + // scrolling). this doesn't hit clamping thresholds since we're + // starting on row 1. what we really need is a valid story for trimming + // sprixels which cross the bottom row, see #2195. .rows = dimy - 1 - bitmaps, // FIXME .cols = dimx, .name = "wmap", diff --git a/src/lib/visual.c b/src/lib/visual.c index 6f3df96db..d6d866a6d 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -1132,7 +1132,7 @@ ncplane* ncvisual_blit(notcurses* nc, ncvisual* ncv, const struct ncvisual_optio placey = 0; placex = 0; } - logdebug("blit to plane %p at %d/%d geom %dx%d\n", n, ncplane_y(n), ncplane_x(n), ncplane_dim_y(n), ncplane_dim_x(n)); + logdebug("blit to plane %p at %d/%d geom %dx%d\n", n, ncplane_abs_y(n), ncplane_abs_x(n), ncplane_dim_y(n), ncplane_dim_x(n)); if(geom.blitter != NCBLIT_PIXEL){ n = ncvisual_render_cells(ncv, bset, placey, placex, &geom, n, vopts->flags, transcolor);