[cairo-commit]
cairo/test coverage-ref.png, 1.7, 1.8 coverage.c, 1.5, 1.6
Carl Worth
commit at pdx.freedesktop.org
Wed Apr 13 14:24:35 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv19468a/test
Modified Files:
coverage-ref.png coverage.c
Log Message:
* test/coverage-ref.png:
* test/coverage.c: (draw_funcs), (draw): Temporarily remove all
text from this test case until we come up with an approach for
drawing the same text with different freetype configurations.
Index: coverage-ref.png
===================================================================
RCS file: /cvs/cairo/cairo/test/coverage-ref.png,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
Binary files /tmp/cvsRb8lFr and /tmp/cvsHrUbt8 differ
Index: coverage.c
===================================================================
RCS file: /cvs/cairo/cairo/test/coverage.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- coverage.c 7 Apr 2005 20:29:32 -0000 1.5
+++ coverage.c 13 Apr 2005 21:24:27 -0000 1.6
@@ -84,12 +84,14 @@
cairo_set_alpha (cr, 0.5);
}
+#if WE_FIX_THE_TEST_SO_THAT_IT_DOES_NOT_DEPEND_ON_HOW_FREETPYE_IS_COMPILED
static void
draw_text (cairo_t *cr, int x, int y)
{
cairo_rel_move_to (cr, 0, fontsize);
cairo_show_text (cr, "Aa");
}
+#endif
static void
draw_polygon (cairo_t *cr, int x, int y)
@@ -114,7 +116,9 @@
};
static void (*draw_funcs[])(cairo_t *cr, int x, int y) = {
+#if WE_FIX_THE_TEST_SO_THAT_IT_DOES_NOT_DEPEND_ON_HOW_FREETPYE_IS_COMPILED
draw_text,
+#endif
draw_polygon,
};
@@ -137,10 +141,12 @@
int i, j, x, y;
+#if WE_FIX_THE_TEST_SO_THAT_IT_DOES_NOT_DEPEND_ON_HOW_FREETPYE_IS_COMPILED
cairo_select_font (cr, fontname,
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, fontsize);
+#endif
for (j = 0; j < ARRAY_SIZE (draw_funcs); j++) {
for (i = 0; i < ARRAY_SIZE (pattern_funcs); i++) {
More information about the cairo-commit
mailing list