term: fcft: use a16b16g16r16 instead of rgba_float if available

This commit is contained in:
Daniel Eklöf 2025-05-01 12:00:02 +02:00
parent 763ea2eb4a
commit c1ccd8be6f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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];