[Swfdec] libswfdec/swfdec_pattern.c
Benjamin Otte
company at kemper.freedesktop.org
Thu Apr 26 12:15:44 PDT 2007
libswfdec/swfdec_pattern.c | 4 ++++
1 files changed, 4 insertions(+)
New commits:
diff-tree d9885a97992dbc5f868f6c23075683e518b64dc8 (from 7594421b547a4243b11398b22c5ff8f6039c623d)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Apr 26 21:16:15 2007 +0200
add workaround for old cairo versions
cairo_append_path used to take a non-const path even though it was
never modified
diff --git a/libswfdec/swfdec_pattern.c b/libswfdec/swfdec_pattern.c
index dc9282f..53fe202 100644
--- a/libswfdec/swfdec_pattern.c
+++ b/libswfdec/swfdec_pattern.c
@@ -486,7 +486,11 @@ swfdec_pattern_paint (SwfdecPattern *pat
cpattern = swfdec_pattern_get_pattern (pattern, trans, ratio);
if (cpattern == NULL)
return;
+#if CAIRO_VERSION_MAJOR < 2 && CAIRO_VERSION_MINOR < 4
+ cairo_append_path (cr, (cairo_path_t *) path);
+#else
cairo_append_path (cr, path);
+#endif
cairo_set_source (cr, cpattern);
cairo_pattern_destroy (cpattern);
cairo_fill (cr);
More information about the Swfdec
mailing list