[visual] use absolute coordinate in diagnostic

pull/2388/head
nick black 3 years ago
parent 3c58b8bd45
commit c0daadeb9f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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",

@ -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);

Loading…
Cancel
Save