From bb63935e63365d842fe530629387d1d2a4248042 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 20 Nov 2024 01:20:46 +0100 Subject: Refactor changes --- src/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 78dcad7..4183913 100644 --- a/src/util.h +++ b/src/util.h @@ -19,7 +19,7 @@ typedef struct { typedef struct { color_t *colors; size_t length; - cairo_pattern_t *cached; + cairo_pattern_t *pattern; } gradient_t; static inline color_t color_rgba(int r, int g, int b, int a) @@ -44,6 +44,8 @@ void color_print(FILE *stream, color_t *color); char *gradient_to_string(gradient_t *gradient); +void gradient_print(FILE *stream, gradient_t *gradient); + void gradient_free(gradient_t *gradient); const struct timespec timespec_from_ms(long ms); -- cgit v1.2.3