mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
render: remove unused functions
This commit is contained in:
parent
1f264b165d
commit
29d4722de5
1 changed files with 0 additions and 18 deletions
18
render.c
18
render.c
|
|
@ -202,16 +202,6 @@ attrs_to_font(const struct terminal *term, const struct attributes *attrs)
|
||||||
return term->fonts[idx];
|
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
|
static inline pixman_color_t
|
||||||
color_hex_to_pixman_with_alpha(uint32_t color, uint16_t alpha)
|
color_hex_to_pixman_with_alpha(uint32_t color, uint16_t alpha)
|
||||||
{
|
{
|
||||||
|
|
@ -234,14 +224,6 @@ color_hex_to_pixman(uint32_t color)
|
||||||
return color_hex_to_pixman_with_alpha(color, 0xffff);
|
return color_hex_to_pixman_with_alpha(color, 0xffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
|
||||||
color_dim(struct rgb *rgb)
|
|
||||||
{
|
|
||||||
rgb->r /= 2.;
|
|
||||||
rgb->g /= 2.;
|
|
||||||
rgb->b /= 2.;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
pixman_color_dim(pixman_color_t *color)
|
pixman_color_dim(pixman_color_t *color)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue