[cffi] update cell_release to nccell_release

This commit is contained in:
nick black 2021-04-10 09:29:09 -04:00
parent 849ec2748f
commit 9fdfd33d30
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 3 additions and 3 deletions

View File

@ -187,8 +187,8 @@ int ncplane_putstr_stained(struct ncplane* n, const char* s);
int ncplane_putwstr_stained(struct ncplane* n, const wchar_t* gclustarr);
struct ncplane* ncplane_dup(const struct ncplane* n, void* opaque);
int cell_load(struct ncplane* n, cell* c, const char* gcluster);
int cell_duplicate(struct ncplane* n, cell* targ, const cell* c);
void cell_release(struct ncplane* n, cell* c);
int nccell_duplicate(struct ncplane* n, cell* targ, const cell* c);
void nccell_release(struct ncplane* n, cell* c);
const char* cell_extended_gcluster(const struct ncplane* n, const cell* c);
typedef struct palette256 {
// We store the RGB values as a regular ol' channel

View File

@ -94,7 +94,7 @@ class Cell:
self.c.gcluster = egc # FIXME need use cell_load
def __del__(self):
lib.cell_release(self.ncp.getNcplane(), self.c)
lib.nccell_release(self.ncp.getNcplane(), self.c)
def setFgRGB(self, r, g, b):
self.c.channels = channels_set_fg_rgb8(self.c.channels, r, g, b)