mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 09:40:19 +01:00
Call it CAIRO_EXTEND_PAD instead of CAIRO_EXTEND_NEAREST.
Update everybody to use _PAD instead of _NEAREST.
This commit is contained in:
parent
f39816e016
commit
f1044bb3c7
8 changed files with 22 additions and 8 deletions
14
ChangeLog
14
ChangeLog
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue