[cairo-commit] cairo/src cairo.c,1.65,1.66

Kristian Hogsberg commit at pdx.freedesktop.org
Thu Mar 31 13:25:46 PST 2005


Committed by: krh

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv15776/src

Modified Files:
	cairo.c 
Log Message:
2005-03-31  Kristian Høgsberg  <krh at redhat.com>

        * src/cairo.c (cairo_set_target_png): Remove this function now
        that the PNG backend is gone.



Index: cairo.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- cairo.c	28 Mar 2005 21:58:26 -0000	1.65
+++ cairo.c	31 Mar 2005 21:25:44 -0000	1.66
@@ -449,34 +449,6 @@
 }
 #endif /* CAIRO_HAS_PDF_SURFACE */
 
-#ifdef CAIRO_HAS_PNG_SURFACE
-
-#include "cairo-png.h"
-
-void
-cairo_set_target_png (cairo_t	*cr,
-		      FILE	*file,
-		      cairo_format_t	format,
-		      int	       	width,
-		      int		height)
-{
-    cairo_surface_t *surface;
-
-    surface = cairo_png_surface_create (file, format, 
-					width, height);
-
-    if (surface == NULL) {
-	cr->status = CAIRO_STATUS_NO_MEMORY;
-	return;
-    }
-
-    cairo_set_target_surface (cr, surface);
-
-    /* cairo_set_target_surface takes a reference, so we must destroy ours */
-    cairo_surface_destroy (surface);
-}
-#endif /* CAIRO_HAS_PNG_SURFACE */
-
 #ifdef CAIRO_HAS_PS_SURFACE
 
 #include "cairo-ps.h"




More information about the cairo-commit mailing list