fix for SVG image crashes seen in firefox from mantainer Eric Faurot <eric

. faurot at gmail dot com>
This commit is contained in:
kurt 2007-03-18 14:48:45 +00:00
parent 7acda7d1f0
commit f00b5db05d
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.9 2007/02/06 21:29:06 espie Exp $
# $OpenBSD: Makefile,v 1.10 2007/03/18 14:48:45 kurt Exp $
COMMENT= "vector graphics library"
DISTNAME= cairo-1.2.6
PKGNAME= ${DISTNAME}p0
SHARED_LIBS += cairo 5.0 # .11.3
CATEGORIES= graphics

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-src_cairo-xlib-surface_c,v 1.3 2007/02/06 21:29:06 espie Exp $
$OpenBSD: patch-src_cairo-xlib-surface_c,v 1.4 2007/03/18 14:48:45 kurt Exp $
--- src/cairo-xlib-surface.c.orig Thu Nov 2 23:53:40 2006
+++ src/cairo-xlib-surface.c Sun Feb 4 23:47:01 2007
+++ src/cairo-xlib-surface.c Sat Mar 17 14:20:44 2007
@@ -81,6 +81,8 @@ _cairo_xlib_surface_show_glyphs (void
#define CAIRO_ASSUME_PIXMAP 20
@ -446,7 +446,7 @@ $OpenBSD: patch-src_cairo-xlib-surface_c,v 1.3 2007/02/06 21:29:06 espie Exp $
+ case WORKAROUND_NONE:
+ /* Default behaviour is supposed to work */
+ stride = image->width * 4;
+ stride = image->stride;
+ depth = image->depth;
+ data = image->data;
+ break;