pass ncpile down through to pixel_scroll #2010

pull/2041/head
nick black 3 years ago
parent cee18f5da7
commit 57b54cda1d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1,8 +1,13 @@
#include "linux.h"
#include "internal.h"
void fbcon_scroll(tinfo* ti, int rows){
// FIXME
void fbcon_scroll(const struct ncpile* p, tinfo* ti, int rows){
if(ti->cellpixy){
return;
}
int totalrows = ti->cellpixy * p->dimy;
// FIXME iterate from 0.. dimy - rows, copy from |rows| down
// FIXME clear out bottom |rows| rows
}
// auxvecs for framebuffer are 1B each for s->cellpxx * s->cellpxy elements,

@ -888,7 +888,7 @@ rasterize_scrolls(ncpile* p, fbuf* f){
}
}
if(p->nc->tcache.pixel_scroll){
p->nc->tcache.pixel_scroll(&p->nc->tcache, p->scrolls);
p->nc->tcache.pixel_scroll(p, &p->nc->tcache, p->scrolls);
}
if(goto_location(p->nc, f, p->dimy, 0)){
return -1;

@ -206,7 +206,7 @@ int fbcon_blit(struct ncplane* nc, int linesize, const void* data,
int leny, int lenx, const struct blitterargs* bargs);
int fbcon_draw(const tinfo* ti, const struct ncpile *p, sprixel* s,
fbuf* f, int y, int x);
void fbcon_scroll(tinfo* ti, int rows);
void fbcon_scroll(const struct ncpile* p, tinfo* ti, int rows);
typedef enum {
// C=1 (disabling scrolling) was only introduced in 0.20.0, at the same

@ -164,7 +164,7 @@ typedef struct tinfo {
// make a loaded graphic visible. only used with kitty.
int (*pixel_commit)(fbuf* f, struct sprixel* s, unsigned noscroll);
// scroll all graphics up. only used with fbcon.
void (*pixel_scroll)(struct tinfo*, int rows);
void (*pixel_scroll)(const struct ncpile* p, struct tinfo*, int rows);
uint8_t* (*pixel_trans_auxvec)(const struct tinfo* ti); // create tranparent auxvec
// sprixel parameters. there are several different sprixel protocols, of
// which we support sixel and kitty. the kitty protocol is used based

Loading…
Cancel
Save