mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
remove last instances of ncvisual_render() #1462
This commit is contained in:
parent
d5626e64aa
commit
9d002feea3
@ -295,7 +295,7 @@ If things break or seem otherwise lackluster, **please** consult the
|
||||
Notcurses will not make use of bitmap protocols unless the terminal positively
|
||||
indicates support for them, even if `NCBLIT_PIXEL` has been requested. Likewise,
|
||||
sextants (`NCBLIT_3x2`) won't be used without Unicode 13 support, etc.
|
||||
`ncvisual_render()` will use the best blitter available, unless
|
||||
`ncvisual_blit()` will use the best blitter available, unless
|
||||
`NCVISUAL_OPTION_NODEGRADE` is provided (in which case it will fail).
|
||||
</details>
|
||||
|
||||
|
@ -331,7 +331,7 @@ Its `data` field holds RGBA pixels as provided from disk or memory. Its `pixx`,
|
||||
`rowstride` bytes, each containing `pixx` RGBA pixels at the front, plus any
|
||||
necessary padding (external libraries might generate padded output).
|
||||
|
||||
`ncvisual_render` works with at least four geometries:
|
||||
`ncvisual_blit` works with at least four geometries:
|
||||
* `vopts->begy`/`begx`: offsets into unscaled data (pixels)
|
||||
* `vopts->leny`/`lenx`: lengths of unscaled data to use (pixels)
|
||||
* These geometries, when summed, must not exceed `ncv->pixy`/`ncv->pixx`.
|
||||
|
@ -439,7 +439,7 @@ the size of a cell in pixels (these ought be the same across planes).
|
||||
**maxbmapy** and **maxbmapx** describe the largest bitmap which can be
|
||||
displayed in the plane. Any parameter (save **n**) may be **NULL**.
|
||||
|
||||
When a plane is blitted to using **ncvisual_render** and **NCBLIT_PIXEL** (see
|
||||
When a plane is blitted to using **ncvisual_blit** and **NCBLIT_PIXEL** (see
|
||||
**notcurses_visual(3)**), it ceases to accept cell-based output. The sprixel
|
||||
will remain associated until a new sprixel is blitted to the plane, the plane
|
||||
is resized, the plane is erased, or the plane is destroyed. The base cell of a
|
||||
|
@ -641,7 +641,7 @@ int ncplane_qrcode(ncplane* n, int* ymax, int* xmax, const void* data, size_t le
|
||||
.n = n,
|
||||
.blitter = blitfxn,
|
||||
};
|
||||
if(ncvisual_render(ncplane_notcurses(n), ncv, &vopts) == n){
|
||||
if(ncvisual_blit(ncplane_notcurses(n), ncv, &vopts) == n){
|
||||
ret = square;
|
||||
}
|
||||
ncvisual_blitter_geom(ncplane_notcurses(n), ncv, &vopts, NULL, NULL,
|
||||
|
@ -993,7 +993,7 @@ calc_gradient_channels(uint64_t* channels, uint64_t ul, uint64_t ur,
|
||||
}
|
||||
|
||||
// ncdirect needs to "fake" an isolated ncplane as a drawing surface for
|
||||
// ncvisual_render(), and thus calls these low-level internal functions.
|
||||
// ncvisual_blit(), and thus calls these low-level internal functions.
|
||||
// they are not for general use -- check ncplane_new() and ncplane_destroy().
|
||||
ncplane* ncplane_new_internal(notcurses* nc, ncplane* n, const ncplane_options* nopts);
|
||||
|
||||
|
@ -28,7 +28,7 @@ int oiio_stream(struct notcurses* nc, ncvisual* ncv, float timescale,
|
||||
// decay the blitter explicitly, so that the callback knows the blitter it
|
||||
// was actually rendered with
|
||||
ncvisual_blitter_geom(nc, ncv, &activevopts, NULL, NULL, NULL, NULL, &activevopts.blitter);
|
||||
if((newn = ncvisual_render(nc, ncv, &activevopts)) == NULL){
|
||||
if((newn = ncvisual_blit(nc, ncv, &activevopts)) == NULL){
|
||||
if(activevopts.n != vopts->n){
|
||||
ncplane_destroy(activevopts.n);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ int main(void){
|
||||
.scaling = NCSCALE_STRETCH,
|
||||
.n = n,
|
||||
};
|
||||
if(ncvisual_render(nc, ncv, &vopts) == NULL){
|
||||
if(ncvisual_blit(nc, ncv, &vopts) == NULL){
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user