From d45623c2db570b7a2e0582943734d18f3d64b126 Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Fri, 7 May 2021 16:57:51 -0400 Subject: cairo: Replace by MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For full context, read https://gitlab.freedesktop.org/cairo/cairo/-/issues/479 TL;DR, cairo’s pc file adds `/cairo` to CFLAGS. So namespace cairo shouldn’t be used. --- include/cairo_util.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/cairo_util.h (limited to 'include/cairo_util.h') diff --git a/include/cairo_util.h b/include/cairo_util.h new file mode 100644 index 00000000..dc049c6d --- /dev/null +++ b/include/cairo_util.h @@ -0,0 +1,14 @@ +#ifndef _SWAY_CAIRO_UTIL_H +#define _SWAY_CAIRO_UTIL_H +#include "config.h" +#include +#include +#include + +void cairo_set_source_u32(cairo_t *cairo, uint32_t color); +cairo_subpixel_order_t to_cairo_subpixel_order(enum wl_output_subpixel subpixel); + +cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image, + int width, int height); + +#endif -- cgit v1.2.3-54-g00ecf