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

« back to all changes in this revision

Viewing changes to test/extend-repeat.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:
4
4
 
5
5
static cairo_test_draw_function_t draw;
6
6
 
7
 
cairo_test_t test = {
 
7
static const cairo_test_t test = {
8
8
    "extend-repeat",
9
9
    "Test CAIRO_EXTEND_REPEAT for surface patterns",
10
10
    256 + 32*2, 192 + 32*2,
14
14
static cairo_test_status_t
15
15
draw (cairo_t *cr, int width, int height)
16
16
{
 
17
    const cairo_test_context_t *ctx = cairo_test_get_context (cr);
17
18
    cairo_surface_t *surface;
18
19
 
19
 
    surface = cairo_test_create_surface_from_png (png_filename);
 
20
    surface = cairo_test_create_surface_from_png (ctx, png_filename);
20
21
    cairo_set_source_surface (cr, surface, 32, 32);
21
22
    cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
22
23