mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-16 16:00:42 +01:00
image: Handle PIXMAN_a8r8g8b8_sRGB in switch
Fixes the following compiler warning: cairo-image-surface.c: In function '_cairo_format_from_pixman_format': cairo-image-surface.c:93: warning: enumeration value 'PIXMAN_a8r8g8b8_sRGB' not handled in switch Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58726 Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
966bf2fe6a
commit
1d00550784
1 changed files with 3 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format)
|
|||
return CAIRO_FORMAT_RGB16_565;
|
||||
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,22,0)
|
||||
case PIXMAN_r8g8b8a8: case PIXMAN_r8g8b8x8:
|
||||
#endif
|
||||
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,27,2)
|
||||
case PIXMAN_a8r8g8b8_sRGB:
|
||||
#endif
|
||||
case PIXMAN_a8b8g8r8: case PIXMAN_x8b8g8r8: case PIXMAN_r8g8b8:
|
||||
case PIXMAN_b8g8r8: case PIXMAN_b5g6r5:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue