diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-09 11:35:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-09 11:35:35 +0000 |
| commit | 29d4722de50ef538929c8a40962b9189bdba3b94 (patch) | |
| tree | 394a61813b46f40098198b82399dc71bfbf1d0ec /render.c | |
| parent | config: use an unsigned constant, since we're shifting 31 bits (diff) | |
render: remove unused functions
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -202,16 +202,6 @@ attrs_to_font(const struct terminal *term, const struct attributes *attrs) return term->fonts[idx]; } -static inline struct rgb -color_hex_to_rgb(uint32_t color) -{ - return (struct rgb){ - ((color >> 16) & 0xff) / 255., - ((color >> 8) & 0xff) / 255., - ((color >> 0) & 0xff) / 255., - }; -} - static inline pixman_color_t color_hex_to_pixman_with_alpha(uint32_t color, uint16_t alpha) { @@ -235,14 +225,6 @@ color_hex_to_pixman(uint32_t color) } static inline void -color_dim(struct rgb *rgb) -{ - rgb->r /= 2.; - rgb->g /= 2.; - rgb->b /= 2.; -} - -static inline void pixman_color_dim(pixman_color_t *color) { color->red /= 2; |
