python: update palette256 API wrapper

pull/265/head
nick black 4 years ago
parent ec5e857a6c
commit dec2ab515e

@ -25,7 +25,7 @@ typedef struct palette256 {
**int palette256_set(palette256* p, int idx, unsigned rgb);**
**int palette256_get(const palette256* p, int idx, int* restrict r, int* restrict g, int* restrict b);**
**int palette256_get_rgb(const palette256* p, int idx, int* restrict r, int* restrict g, int* restrict b);**
**void palette256_free(palette256* p);**

@ -231,7 +231,7 @@ palette256* palette256_new(struct notcurses* nc);
int palette256_use(struct notcurses* nc, const palette256* p);
int palette256_set_rgb(palette256* p, int idx, int r, int g, int b);
int palette256_set(palette256* p, int idx, unsigned rgb);
int palette256_get(const palette256* p, int idx, unsigned* r, unsigned* g, unsigned* b);
int palette256_get_rgb(const palette256* p, int idx, unsigned* r, unsigned* g, unsigned* b);
void palette256_free(palette256* p);
""")

Loading…
Cancel
Save