~ubuntu-branches/ubuntu/intrepid/cairo/intrepid-updates

« back to all changes in this revision

Viewing changes to test/surface-source.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-09-25 16:22:33 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080925162233-btx61ymk181i7mcc
Tags: 1.7.6-0ubuntu1
* New upstream version. Most noticable changes are:
  - some API changes with especially the removal of
    cairo_font_options_set_lcd_filter and cairo_font_options_get_lcd_filter
  - xlib: Faster bookkeeping
  - PS: Fix gradients with non-constant alpha
  - Fix deadlock in user-font code
* debian/patches/00list: Remove 03_from_git_fix_lcd_filter_default.dpatch,
  add debian/patches/03_fix_ftbfs_withing_xcb.dpatch
* debian/libcairo2.symbols, debian/libcairo-directfb2.symbols: update
  list of symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#define SIZE 90
32
32
 
33
 
cairo_test_t test = {
 
33
static const cairo_test_t test = {
34
34
    NAME "-surface-source",
35
35
    "Test using various surfaces as the source",
36
36
    SIZE, SIZE,
77
77
 
78
78
    surface_size = SIZE - 30;
79
79
    surface = create_source_surface (surface_size);
 
80
    if (surface == NULL) /* can't create the source so skip the test */
 
81
        return CAIRO_TEST_UNTESTED;
 
82
 
80
83
    draw_pattern (surface, surface_size);
81
84
 
82
85
    cairo_set_source_surface (cr, surface, 15, 15);
93
96
 
94
97
    surface = create_source_surface (SIZE);
95
98
    if (surface == NULL) /* can't create the source so skip the test */
96
 
        return CAIRO_TEST_SUCCESS;
 
99
        return CAIRO_TEST_UNTESTED;
97
100
 
98
101
    cairo_surface_destroy (surface);
99
102