[pango] Fix view-cairo on Windows
- From: Khaled Hosny <khaledh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix view-cairo on Windows
- Date: Sat, 17 Mar 2018 19:14:36 +0000 (UTC)
commit 3dfe2b9a5c8ac5ae37c210ba050f3720189cebb7
Author: Patrick Griffis <tingping tingping se>
Date: Fri Mar 9 15:03:28 2018 +0000
Fix view-cairo on Windows
pango-view/viewer-cairo.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/pango-view/viewer-cairo.c b/pango-view/viewer-cairo.c
index 707a8c8..ca98c1c 100644
--- a/pango-view/viewer-cairo.c
+++ b/pango-view/viewer-cairo.c
@@ -34,8 +34,6 @@
#include "viewer-x.h"
#include <cairo-xlib.h>
-
-
static cairo_surface_t *
cairo_x_view_iface_create_surface (gpointer instance,
gpointer surface,
@@ -229,18 +227,18 @@ cairo_vector_view_create (const PangoViewer *klass G_GNUC_UNUSED)
if (0)
;
#ifdef CAIRO_HAS_SVG_SURFACE
- else if (0 == strcasecmp (extension, "svg"))
+ else if (0 == g_ascii_strcasecmp (extension, "svg"))
constructor = cairo_svg_surface_create;
#endif
#ifdef CAIRO_HAS_PDF_SURFACE
- else if (0 == strcasecmp (extension, "pdf"))
+ else if (0 == g_ascii_strcasecmp (extension, "pdf"))
constructor = cairo_pdf_surface_create;
#endif
#ifdef CAIRO_HAS_PS_SURFACE
- else if (0 == strcasecmp (extension, "ps"))
+ else if (0 == g_ascii_strcasecmp (extension, "ps"))
constructor = cairo_ps_surface_create;
#ifdef HAS_EPS
- else if (0 == strcasecmp (extension, "eps"))
+ else if (0 == g_ascii_strcasecmp (extension, "eps"))
constructor = _cairo_eps_surface_create;
#endif
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]