[cairo-commit] cairo-demo/cairo_snippets ChangeLog, 1.37,
1.38 cairo_snippets_pdf.c, 1.7, 1.8
Kristian Hogsberg
commit at pdx.freedesktop.org
Fri May 13 09:34:01 PDT 2005
Committed by: krh
Update of /cvs/cairo/cairo-demo/cairo_snippets
In directory gabe:/tmp/cvs-serv11599
Modified Files:
ChangeLog cairo_snippets_pdf.c
Log Message:
2005-05-13 Kristian Høgsberg <krh at redhat.com>
* cairo_snippets_pdf.c (main): Use new PDF constructor.
Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/cairo_snippets/ChangeLog,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- ChangeLog 12 May 2005 09:49:20 -0000 1.37
+++ ChangeLog 13 May 2005 16:33:59 -0000 1.38
@@ -1,3 +1,7 @@
+2005-05-13 Kristian Høgsberg <krh at redhat.com>
+
+ * cairo_snippets_pdf.c (main): Use new PDF constructor.
+
2005-05-12 Steve Chaplin <steve1097 at yahoo.com.au>
* cairo_snippets_png.c: remove #include <cairo-png.h>
Index: cairo_snippets_pdf.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/cairo_snippets/cairo_snippets_pdf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cairo_snippets_pdf.c 11 May 2005 23:04:57 -0000 1.7
+++ cairo_snippets_pdf.c 13 May 2005 16:33:59 -0000 1.8
@@ -7,8 +7,6 @@
#define X_INCHES 2
#define Y_INCHES 2
-#define X_PPI 300.0
-#define Y_PPI 300.0
#define WIDTH X_INCHES * 72.0
#define HEIGHT Y_INCHES * 72.0
@@ -28,9 +26,7 @@
file = fopen ("snippets.pdf", "w");
- surface = cairo_pdf_surface_create (file,
- X_INCHES, Y_INCHES,
- X_PPI, Y_PPI);
+ surface = cairo_pdf_surface_create (file, WIDTH, HEIGHT);
cr = cairo_create (surface);
if (argc == 1) {
More information about the cairo-commit
mailing list