mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
[keller] fix up for ncvisual_blit() #1462
This commit is contained in:
parent
e95e2fac66
commit
f096064648
@ -23,10 +23,13 @@ visualize(struct notcurses* nc, struct ncvisual* ncv){
|
|||||||
ncplane_set_base(stdn, "", 0, channels);
|
ncplane_set_base(stdn, "", 0, channels);
|
||||||
for(size_t i = 0 ; i < sizeof(bs) / sizeof(*bs) ; ++i){
|
for(size_t i = 0 ; i < sizeof(bs) / sizeof(*bs) ; ++i){
|
||||||
struct ncvisual_options vopts = {
|
struct ncvisual_options vopts = {
|
||||||
|
.n = notcurses_stdplane(nc),
|
||||||
.scaling = NCSCALE_SCALE,
|
.scaling = NCSCALE_SCALE,
|
||||||
.blitter = bs[i],
|
.blitter = bs[i],
|
||||||
.flags = NCVISUAL_OPTION_NODEGRADE | NCVISUAL_OPTION_HORALIGNED
|
.flags = NCVISUAL_OPTION_NODEGRADE
|
||||||
| NCVISUAL_OPTION_VERALIGNED,
|
| NCVISUAL_OPTION_HORALIGNED
|
||||||
|
| NCVISUAL_OPTION_VERALIGNED
|
||||||
|
| NCVISUAL_OPTION_CHILDPLANE,
|
||||||
};
|
};
|
||||||
int scalex, scaley, truey, truex;
|
int scalex, scaley, truey, truex;
|
||||||
vopts.x = NCALIGN_CENTER;
|
vopts.x = NCALIGN_CENTER;
|
||||||
|
Loading…
Reference in New Issue
Block a user