diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-02-21 18:16:34 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-02-23 17:26:42 -0500 |
commit | 5562050bcf68923986b597f3aca1e285a466fa6c (patch) | |
tree | 12ee7ee9d885c925e9a7874534513e895d73641b /test/extend-reflect.c | |
parent | 81935bb13120898a8581d8266041d3292558710a (diff) | |
download | cairo-5562050bcf68923986b597f3aca1e285a466fa6c.tar.gz |
Support CAIRO_EXTEND_REFLECT on surface patterns
We do this through a hack, that is, we make
_cairo_pattern_acquire_surface to return a surface that has four
copies of the original surface painted such that this image can
be simply repeated to get the effect of reflecting the original
surface.
This fixes the formerly XFAIL test extend-reflect.
Diffstat (limited to 'test/extend-reflect.c')
-rw-r--r-- | test/extend-reflect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/extend-reflect.c b/test/extend-reflect.c index 297c475f6..3d36bb25d 100644 --- a/test/extend-reflect.c +++ b/test/extend-reflect.c @@ -3,15 +3,13 @@ #include <stdio.h> #define SIZE 400 -#define OFFSET 50 const char png_filename[] = "romedalen.png"; static cairo_test_draw_function_t draw; cairo_test_t test = { "extend-reflect", - "Test CAIRO_EXTEND_REFLECT for surface patterns" - "\nCAIRO_EXTEND_REFLECT code is broken and corrupts memory", + "Test CAIRO_EXTEND_REFLECT for surface patterns", SIZE, SIZE, draw }; |