python: match new blend signatures

This commit is contained in:
nick black 2020-02-07 09:39:05 -05:00
parent d4fe929f63
commit 5c67591294
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 3 additions and 3 deletions

View File

@ -206,8 +206,8 @@ unsigned cell_bchannel(const cell* cl);
unsigned cell_fchannel(const cell* cl); unsigned cell_fchannel(const cell* cl);
uint64_t cell_set_bchannel(cell* cl, uint32_t channel); uint64_t cell_set_bchannel(cell* cl, uint32_t channel);
uint64_t cell_set_fchannel(cell* cl, uint32_t channel); uint64_t cell_set_fchannel(cell* cl, uint32_t channel);
uint64_t cell_blend_fchannel(cell* cl, unsigned channel, unsigned blends); uint64_t cell_blend_fchannel(cell* cl, unsigned channel, unsigned* blends);
uint64_t cell_blend_bchannel(cell* cl, unsigned channel, unsigned blends); uint64_t cell_blend_bchannel(cell* cl, unsigned channel, unsigned* blends);
unsigned cell_fg(const cell* cl); unsigned cell_fg(const cell* cl);
unsigned cell_bg(const cell* cl); unsigned cell_bg(const cell* cl);
unsigned cell_fg_alpha(const cell* cl); unsigned cell_fg_alpha(const cell* cl);

View File

@ -61,7 +61,7 @@ struct ncmenu* menu_create(struct notcurses* nc){
struct ncmenu_item demo_items[] = { struct ncmenu_item demo_items[] = {
{ .desc = "Restart", .shortcut = { .id = 'r', .ctrl = true, }, }, { .desc = "Restart", .shortcut = { .id = 'r', .ctrl = true, }, },
}; };
const struct ncmenu_section sections[] = { struct ncmenu_section sections[] = {
{ .name = "notcurses-demo", .items = demo_items, { .name = "notcurses-demo", .items = demo_items,
.itemcount = sizeof(demo_items) / sizeof(*demo_items), .itemcount = sizeof(demo_items) / sizeof(*demo_items),
.shortcut = { .id = 'o', .alt = true, }, }, .shortcut = { .id = 'o', .alt = true, }, },