[cairo-commit] cairo-perl CairoSurface.xs, 1.17, 1.18 MANIFEST, 1.9, 1.10 Makefile.PL, 1.21, 1.22 NEWS, 1.9, 1.10 doctypes, NONE, 1.1 ChangeLog, 1.45, 1.46

Torsten Schoenfeld commit at pdx.freedesktop.org
Thu Nov 23 11:09:16 PST 2006


Committed by: tsch

Update of /cvs/cairo/cairo-perl
In directory kemper:/tmp/cvs-serv25129

Modified Files:
	CairoSurface.xs MANIFEST Makefile.PL NEWS ChangeLog 
Added Files:
	doctypes 
Log Message:
	* CairoSurface.xs, t/CairoSurface.t: Make
	Cairo::ImageSurface::get_data usable by specifying the buffer
	length.

	* MANIFEST, Makefile.PL, doctypes: Describe our types.

	* NEWS: Merge from stable-1-0.


Index: CairoSurface.xs
===================================================================
RCS file: /cvs/cairo/cairo-perl/CairoSurface.xs,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- CairoSurface.xs	24 Sep 2006 12:20:43 -0000	1.17
+++ CairoSurface.xs	23 Nov 2006 19:09:12 -0000	1.18
@@ -343,9 +343,12 @@
 cairo_image_surface_get_data (cairo_surface_t *surface)
     PREINIT:
 	unsigned char *data;
+	int height, stride;
     CODE:
 	data = cairo_image_surface_get_data (surface);
-	RETVAL = data ? newSVpv ((char *) data, 0) : &PL_sv_undef;
+	height = cairo_image_surface_get_height (surface);
+	stride = cairo_image_surface_get_stride (surface);
+	RETVAL = data ? newSVpv ((char *) data, height * stride) : &PL_sv_undef;
     OUTPUT:
 	RETVAL
 

Index: MANIFEST
===================================================================
RCS file: /cvs/cairo/cairo-perl/MANIFEST,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- MANIFEST	15 Aug 2006 14:06:47 -0000	1.9
+++ MANIFEST	23 Nov 2006 19:09:12 -0000	1.10
@@ -17,6 +17,7 @@
 cairo-perl-private.h
 cairo-perl.h
 cairo-perl.typemap
+doctypes
 examples/png-streams.pl
 examples/png/README
 examples/png/bevels.pl

Index: Makefile.PL
===================================================================
RCS file: /cvs/cairo/cairo-perl/Makefile.PL,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- Makefile.PL	9 Nov 2006 19:43:43 -0000	1.21
+++ Makefile.PL	23 Nov 2006 19:09:12 -0000	1.22
@@ -313,6 +313,7 @@
 
 $dep->install (qw(cairo-perl.h
                   cairo-perl.typemap
+                  doctypes
                   build/cairo-perl-auto.h
                   build/cairo-perl-auto.typemap));
 $dep->save_config ('build/IFiles.pm');

Index: NEWS
===================================================================
RCS file: /cvs/cairo/cairo-perl/NEWS,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- NEWS	9 Nov 2006 19:24:51 -0000	1.9
+++ NEWS	23 Nov 2006 19:09:12 -0000	1.10
@@ -1,3 +1,8 @@
+Overview of changes in Cairo 1.021
+==================================
+
+* Fix test failure.
+
 Overview of changes in Cairo 1.02
 =================================
 

--- NEW FILE: doctypes ---
cairo_t			Cairo::Context
cairo_font_options_t	Cairo::FontOptions

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-perl/ChangeLog,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- ChangeLog	9 Nov 2006 19:43:43 -0000	1.45
+++ ChangeLog	23 Nov 2006 19:09:12 -0000	1.46
@@ -1,3 +1,13 @@
+2006-11-23	tsch
+
+	* CairoSurface.xs, t/CairoSurface.t: Make
+	Cairo::ImageSurface::get_data usable by specifying the buffer
+	length.
+
+	* MANIFEST, Makefile.PL, doctypes: Describe our types.
+
+	* NEWS: Merge from stable-1-0.
+
 2006-11-09	tsch
 
 	* Cairo.xs, cairo-perl-private.h: Export cairo_perl_alloc_temp



More information about the cairo-commit mailing list