Call it CAIRO_EXTEND_PAD instead of CAIRO_EXTEND_NEAREST.

Update everybody to use _PAD instead of _NEAREST.
This commit is contained in:
Billy Biggs 2005-10-10 12:45:15 +00:00
parent f39816e016
commit f1044bb3c7
8 changed files with 22 additions and 8 deletions

View file

@ -1,3 +1,17 @@
2005-10-10 Billy Biggs <vektor@dumbterm.net>
* src/cairo.h: Call it CAIRO_EXTEND_PAD instead of
CAIRO_EXTEND_NEAREST.
* src/cairoint.h:
* src/cairo-glitz-surface.c:
(_cairo_glitz_pattern_acquire_surface):
* src/cairo-image-surface.c (_cairo_image_surface_set_attributes):
* src/cairo-pattern.c (_cairo_pattern_calc_color_at_pixel):
* src/cairo-xcb-surface.c (_cairo_xcb_surface_set_attributes):
* src/cairo-xlib-surface.c (_cairo_xlib_surface_set_attributes):
Update everybody to use _PAD instead of _NEAREST.
2005-10-10 Kristian Høgsberg <krh@redhat.com>
* src/cairo-gstate.c (_cairo_gstate_fill): Transform source

View file

@ -682,7 +682,7 @@ _cairo_glitz_pattern_acquire_surface (cairo_pattern_t *pattern,
case CAIRO_EXTEND_REFLECT:
attr->fill = GLITZ_FILL_REFLECT;
break;
case CAIRO_EXTEND_NEAREST:
case CAIRO_EXTEND_PAD:
attr->fill = GLITZ_FILL_NEAREST;
break;
}

View file

@ -500,7 +500,7 @@ _cairo_image_surface_set_attributes (cairo_image_surface_t *surface,
case CAIRO_EXTEND_REFLECT:
pixman_image_set_repeat (surface->pixman_image, PIXMAN_REPEAT_REFLECT);
break;
case CAIRO_EXTEND_NEAREST:
case CAIRO_EXTEND_PAD:
pixman_image_set_repeat (surface->pixman_image, PIXMAN_REPEAT_PAD);
break;
}

View file

@ -955,7 +955,7 @@ _cairo_pattern_calc_color_at_pixel (cairo_shader_op_t *op,
factor -= factor & 0xffff0000;
}
break;
case CAIRO_EXTEND_NEAREST:
case CAIRO_EXTEND_PAD:
case CAIRO_EXTEND_NONE:
break;
}

View file

@ -787,7 +787,7 @@ _cairo_xcb_surface_set_attributes (cairo_xcb_surface_t *surface,
break;
case CAIRO_EXTEND_REFLECT:
return CAIRO_INT_STATUS_UNSUPPORTED;
case CAIRO_EXTEND_NEAREST:
case CAIRO_EXTEND_PAD:
return CAIRO_INT_STATUS_UNSUPPORTED;
}

View file

@ -937,7 +937,7 @@ _cairo_xlib_surface_set_attributes (cairo_xlib_surface_t *surface,
_cairo_xlib_surface_set_repeat (surface, 1);
break;
case CAIRO_EXTEND_REFLECT:
case CAIRO_EXTEND_NEAREST:
case CAIRO_EXTEND_PAD:
return CAIRO_INT_STATUS_UNSUPPORTED;
}

View file

@ -1296,7 +1296,7 @@ cairo_pattern_get_matrix (cairo_pattern_t *pattern,
* @CAIRO_EXTEND_REPEAT: the pattern is tiled by repeating
* @CAIRO_EXTEND_REFLECT: the pattern is tiled by reflecting
* at the edges
* @CAIRO_EXTEND_NEAREST: pixels outside of the pattern copy
* @CAIRO_EXTEND_PAD: pixels outside of the pattern copy
* the closest pixel from the source (since cairo 1.2)
*
* #cairo_extend_t is used to describe how the area outside
@ -1306,7 +1306,7 @@ typedef enum _cairo_extend {
CAIRO_EXTEND_NONE,
CAIRO_EXTEND_REPEAT,
CAIRO_EXTEND_REFLECT,
CAIRO_EXTEND_NEAREST
CAIRO_EXTEND_PAD
} cairo_extend_t;
cairo_public void

View file

@ -822,7 +822,7 @@ typedef enum {
} cairo_stock_t;
#define CAIRO_EXTEND_SURFACE_DEFAULT CAIRO_EXTEND_NONE
#define CAIRO_EXTEND_GRADIENT_DEFAULT CAIRO_EXTEND_NEAREST
#define CAIRO_EXTEND_GRADIENT_DEFAULT CAIRO_EXTEND_PAD
#define CAIRO_FILTER_DEFAULT CAIRO_FILTER_BEST
typedef enum {