mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
term: fcft: use a16b16g16r16 instead of rgba_float if available
This commit is contained in:
parent
763ea2eb4a
commit
c1ccd8be6f
1 changed files with 4 additions and 0 deletions
|
|
@ -1082,7 +1082,11 @@ reload_fonts(struct terminal *term, bool resize_grid)
|
|||
* an a2r10g0b10 type of surface, since we need more than 2
|
||||
* bits for alpha.
|
||||
*/
|
||||
#if defined(HAVE_PIXMAN_RGBA_16)
|
||||
options->color_glyphs.format = PIXMAN_a16b16g16r16;
|
||||
#else
|
||||
options->color_glyphs.format = PIXMAN_rgba_float;
|
||||
#endif
|
||||
}
|
||||
|
||||
struct fcft_font *fonts[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue