mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
shm: chain_bit_depth(): recognize 16-bit surfaces
This commit is contained in:
parent
7f1f9b1af0
commit
2d23010c23
1 changed files with 5 additions and 1 deletions
6
shm.c
6
shm.c
|
|
@ -1128,9 +1128,13 @@ shm_chain_bit_depth(const struct buffer_chain *chain)
|
||||||
|
|
||||||
return fmt == PIXMAN_a8r8g8b8
|
return fmt == PIXMAN_a8r8g8b8
|
||||||
? SHM_BITS_8
|
? SHM_BITS_8
|
||||||
|
#if defined(HAVE_PIXMAN_RGBA_16)
|
||||||
|
: fmt == PIXMAN_a16b16g16r16
|
||||||
|
? SHM_BITS_16
|
||||||
|
#endif
|
||||||
#if defined(HAVE_PIXMAN_RGBA_FLOAT16)
|
#if defined(HAVE_PIXMAN_RGBA_FLOAT16)
|
||||||
: fmt == PIXMAN_rgba_float16
|
: fmt == PIXMAN_rgba_float16
|
||||||
? SHM_BITS_16F
|
? SHM_BITS_16F
|
||||||
#endif
|
#endif
|
||||||
: SHM_BITS_10;
|
: SHM_BITS_10;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue