Fix build with older versions of Cairo
This commit is contained in:
parent
4b5b8ec9fa
commit
1ef0a84bc7
2
fiv-io.c
2
fiv-io.c
@ -191,12 +191,14 @@ fiv_io_image_new(cairo_format_t format, uint32_t width, uint32_t height)
|
|||||||
case CAIRO_FORMAT_ARGB32:
|
case CAIRO_FORMAT_ARGB32:
|
||||||
unit = 4;
|
unit = 4;
|
||||||
break;
|
break;
|
||||||
|
#if CAIRO_VERSION >= 11702
|
||||||
case CAIRO_FORMAT_RGB96F:
|
case CAIRO_FORMAT_RGB96F:
|
||||||
unit = 12;
|
unit = 12;
|
||||||
break;
|
break;
|
||||||
case CAIRO_FORMAT_RGBA128F:
|
case CAIRO_FORMAT_RGBA128F:
|
||||||
unit = 16;
|
unit = 16;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user