[cairo-commit]
cairo-demo/cairo_snippets cairo_snippets_html.c, 1.3,
1.4 xxx_dash.cairo, 1.1, 1.2
OEyvind Kolaas
commit at pdx.freedesktop.org
Thu May 20 08:17:36 PDT 2004
Committed by: pippin
Update of /cvs/cairo/cairo-demo/cairo_snippets
In directory pdx:/tmp/cvs-serv29091
Modified Files:
cairo_snippets_html.c xxx_dash.cairo
Log Message:
Index: cairo_snippets_html.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/cairo_snippets/cairo_snippets_html.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** a/cairo_snippets_html.c 20 May 2004 15:06:38 -0000 1.3
--- b/cairo_snippets_html.c 20 May 2004 15:17:34 -0000 1.4
***************
*** 129,136 ****
embed_file (file, "header.html_template");
! fprintf (file, "<table><tr><td rowspacing='3' valign='top'>\n");
! index (file, snippet_no);
!
! fprintf (file, "</td><td valign='top'><p>");
fprintf (file, "<table>\n");
--- 129,133 ----
embed_file (file, "header.html_template");
! fprintf (file, "<table width='100%'><td valign='top'><p>");
fprintf (file, "<table>\n");
***************
*** 173,177 ****
fprintf (file, " <tr><td> </td></tr>\n");
}
! fprintf (file, "</table></td></table>");
embed_file (file, "footer.html_template");
fclose (file);
--- 170,179 ----
fprintf (file, " <tr><td> </td></tr>\n");
}
! fprintf (file, "</table></td>");
! fprintf (file, "<td valign='top'>\n");
! index (file, snippet_no);
! fprintf (file, "</td></table>");
!
!
embed_file (file, "footer.html_template");
fclose (file);
Index: xxx_dash.cairo
===================================================================
RCS file: /cvs/cairo/cairo-demo/cairo_snippets/xxx_dash.cairo,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** a/xxx_dash.cairo 16 May 2004 19:09:50 -0000 1.1
--- b/xxx_dash.cairo 20 May 2004 15:17:34 -0000 1.2
***************
*** 4,12 ****
*/
! double dashes[4]={0.20, /* ink */
! 0.05, /* skip */
! 0.05, /* ink */
! 0.05 /* skip*/
! };
cairo_move_to (cr, 0.5, 0.1);
--- 4,17 ----
*/
! double dashes[] = {0.20, /* ink */
! 0.05, /* skip */
! 0.05, /* ink */
! 0.05 /* skip*/
! };
! int ndash = sizeof (dashes)/sizeof(dashes[0]);
! double offset = -0.2;
!
! cairo_set_dash (cr, dashes, ndash, offset);
!
cairo_move_to (cr, 0.5, 0.1);
***************
*** 15,19 ****
cairo_curve_to (cr, 0.2, 0.9, 0.2, 0.5, 0.5, 0.5);
- cairo_set_dash (cr, dashes, 4, -0.2);
-
cairo_stroke (cr);
--- 20,22 ----
More information about the cairo-commit
mailing list