diff --git a/cucul/canvas.c b/cucul/canvas.c index 8cf9e91..2a0dd0d 100644 --- a/cucul/canvas.c +++ b/cucul/canvas.c @@ -195,8 +195,8 @@ void cucul_get_screen(cucul_t const *qq, char *buffer) */ void cucul_clear(cucul_t *qq) { - enum cucul_color oldfg = cucul_get_fg_color(qq); - enum cucul_color oldbg = cucul_get_bg_color(qq); + enum cucul_color oldfg = qq->fgcolor; + enum cucul_color oldbg = qq->bgcolor; int y = qq->height; cucul_set_color(qq, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK); diff --git a/cucul/sprite.c b/cucul/sprite.c index 4001bc3..13103d8 100644 --- a/cucul/sprite.c +++ b/cucul/sprite.c @@ -275,8 +275,8 @@ void cucul_draw_sprite(cucul_t *qq, int x, int y, struct cucul_sprite const *spr frame = &sprite->frames[f]; - oldfg = cucul_get_fg_color(qq); - oldbg = cucul_get_bg_color(qq); + oldfg = qq->fgcolor; + oldbg = qq->bgcolor; for(j = 0; j < frame->h; j++) {