diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-25 02:00:51 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-25 02:12:50 +0200 |
commit | 1ef0a84bc78db9724aec53eeabc6ce132dc9c7d9 (patch) | |
tree | c088e1d8fb5f6071ed6e1ffb7f1eeb042127f12b /fiv-io.c | |
parent | 4b5b8ec9fa583f080e08c1706108137c3cc45159 (diff) | |
download | fiv-1ef0a84bc78db9724aec53eeabc6ce132dc9c7d9.tar.gz fiv-1ef0a84bc78db9724aec53eeabc6ce132dc9c7d9.tar.xz fiv-1ef0a84bc78db9724aec53eeabc6ce132dc9c7d9.zip |
Fix build with older versions of Cairo
Diffstat (limited to 'fiv-io.c')
-rw-r--r-- | fiv-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -191,12 +191,14 @@ fiv_io_image_new(cairo_format_t format, uint32_t width, uint32_t height) case CAIRO_FORMAT_ARGB32: unit = 4; break; +#if CAIRO_VERSION >= 11702 case CAIRO_FORMAT_RGB96F: unit = 12; break; case CAIRO_FORMAT_RGBA128F: unit = 16; break; +#endif default: return NULL; } |