mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
Remove Boolean 'drawable' parameter from the create_similar surface backend function since nothing anywhere is actually using this parameter.
This commit is contained in:
parent
d2ddfe42a9
commit
663e39a63c
11 changed files with 31 additions and 21 deletions
23
ChangeLog
23
ChangeLog
|
|
@ -1,3 +1,26 @@
|
|||
2005-06-14 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairo-glitz-surface.c: (_cairo_glitz_surface_create_similar),
|
||||
(_cairo_glitz_surface_clone_similar),
|
||||
(_cairo_glitz_pattern_acquire_surface),
|
||||
(_cairo_glitz_surface_composite_trapezoids):
|
||||
* src/cairo-image-surface.c: (_cairo_image_surface_create_similar):
|
||||
* src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_similar):
|
||||
* src/cairo-ps-surface.c: (_cairo_ps_surface_create_similar):
|
||||
* src/cairo-quartz-surface.c:
|
||||
(_cairo_quartz_surface_create_similar):
|
||||
* src/cairo-surface.c: (_cairo_surface_create_similar_scratch),
|
||||
(_cairo_surface_create_similar_solid):
|
||||
* src/cairo-win32-surface.c: (_cairo_win32_surface_create_similar),
|
||||
(_cairo_win32_surface_get_subimage):
|
||||
* src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar),
|
||||
(_cairo_xcb_surface_clone_similar):
|
||||
* src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar),
|
||||
(_cairo_xlib_surface_clone_similar):
|
||||
* src/cairoint.h: Remove Boolean 'drawable' parameter from the
|
||||
create_similar surface backend function since nothing anywhere is
|
||||
actually using this parameter.
|
||||
|
||||
2005-06-14 T Rowley <tim.rowley@gmail.com>
|
||||
|
||||
* src/cairo-win32-font.c: Correct extents for text with a general
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ _glitz_format (cairo_format_t format)
|
|||
static cairo_surface_t *
|
||||
_cairo_glitz_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int draw,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
@ -356,7 +355,7 @@ _cairo_glitz_surface_clone_similar (void *abstract_surface,
|
|||
cairo_image_surface_t *image_src = (cairo_image_surface_t *) src;
|
||||
|
||||
clone = (cairo_glitz_surface_t *)
|
||||
_cairo_glitz_surface_create_similar (surface, image_src->format, 0,
|
||||
_cairo_glitz_surface_create_similar (surface, image_src->format,
|
||||
image_src->width,
|
||||
image_src->height);
|
||||
if (!clone)
|
||||
|
|
@ -602,7 +601,7 @@ _cairo_glitz_pattern_acquire_surface (cairo_pattern_t *pattern,
|
|||
|
||||
src = (cairo_glitz_surface_t *)
|
||||
_cairo_surface_create_similar_scratch (&dst->base,
|
||||
CAIRO_FORMAT_ARGB32, 0,
|
||||
CAIRO_FORMAT_ARGB32,
|
||||
gradient->n_stops, 1);
|
||||
if (!src)
|
||||
{
|
||||
|
|
@ -1035,7 +1034,7 @@ _cairo_glitz_surface_composite_trapezoids (cairo_operator_t op,
|
|||
|
||||
mask = (cairo_glitz_surface_t *)
|
||||
_cairo_glitz_surface_create_similar (&dst->base,
|
||||
CAIRO_FORMAT_A8, 0,
|
||||
CAIRO_FORMAT_A8,
|
||||
2, 1);
|
||||
if (!mask)
|
||||
{
|
||||
|
|
@ -1135,7 +1134,7 @@ _cairo_glitz_surface_composite_trapezoids (cairo_operator_t op,
|
|||
|
||||
mask = (cairo_glitz_surface_t *)
|
||||
_cairo_surface_create_similar_scratch (&dst->base,
|
||||
CAIRO_FORMAT_A8, 0,
|
||||
CAIRO_FORMAT_A8,
|
||||
width, height);
|
||||
if (!mask)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -259,7 +259,6 @@ cairo_image_surface_get_height (cairo_surface_t *surface)
|
|||
static cairo_surface_t *
|
||||
_cairo_image_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1015,7 +1015,6 @@ _cairo_pdf_surface_clear (cairo_pdf_surface_t *surface)
|
|||
static cairo_surface_t *
|
||||
_cairo_pdf_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -159,7 +159,6 @@ cairo_ps_surface_create_for_stream (cairo_write_func_t write_func,
|
|||
static cairo_surface_t *
|
||||
_cairo_ps_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ static cairo_surface_t *_cairo_quartz_surface_create_similar(void
|
|||
*abstract_src,
|
||||
cairo_format_t
|
||||
format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -65,15 +65,13 @@ _cairo_surface_init (cairo_surface_t *surface,
|
|||
cairo_surface_t *
|
||||
_cairo_surface_create_similar_scratch (cairo_surface_t *other,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
if (other == NULL)
|
||||
return NULL;
|
||||
|
||||
return other->backend->create_similar (other, format, drawable,
|
||||
width, height);
|
||||
return other->backend->create_similar (other, format, width, height);
|
||||
}
|
||||
|
||||
cairo_surface_t *
|
||||
|
|
@ -100,7 +98,7 @@ _cairo_surface_create_similar_solid (cairo_surface_t *other,
|
|||
cairo_status_t status;
|
||||
cairo_surface_t *surface;
|
||||
|
||||
surface = _cairo_surface_create_similar_scratch (other, format, 1,
|
||||
surface = _cairo_surface_create_similar_scratch (other, format,
|
||||
width, height);
|
||||
|
||||
if (surface == NULL)
|
||||
|
|
|
|||
|
|
@ -292,7 +292,6 @@ _cairo_win32_surface_create_for_dc (HDC original_dc,
|
|||
static cairo_surface_t *
|
||||
_cairo_win32_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
@ -359,7 +358,6 @@ _cairo_win32_surface_get_subimage (cairo_win32_surface_t *surface,
|
|||
local =
|
||||
(cairo_win32_surface_t *) _cairo_win32_surface_create_similar (surface,
|
||||
surface->format,
|
||||
0,
|
||||
width, height);
|
||||
if (!local)
|
||||
return CAIRO_STATUS_NO_MEMORY;
|
||||
|
|
|
|||
|
|
@ -229,7 +229,6 @@ _CAIRO_FORMAT_DEPTH (cairo_format_t format)
|
|||
static cairo_surface_t *
|
||||
_cairo_xcb_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
@ -641,7 +640,7 @@ _cairo_xcb_surface_clone_similar (void *abstract_surface,
|
|||
cairo_image_surface_t *image_src = (cairo_image_surface_t *)src;
|
||||
|
||||
clone = (cairo_xcb_surface_t *)
|
||||
_cairo_xcb_surface_create_similar (surface, image_src->format, 0,
|
||||
_cairo_xcb_surface_create_similar (surface, image_src->format,
|
||||
image_src->width, image_src->height);
|
||||
if (clone == NULL)
|
||||
return CAIRO_STATUS_NO_MEMORY;
|
||||
|
|
|
|||
|
|
@ -165,7 +165,6 @@ _CAIRO_FORMAT_XRENDER_FORMAT(Display *dpy, cairo_format_t format)
|
|||
static cairo_surface_t *
|
||||
_cairo_xlib_surface_create_similar (void *abstract_src,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
|
|
@ -602,7 +601,7 @@ _cairo_xlib_surface_clone_similar (void *abstract_surface,
|
|||
cairo_image_surface_t *image_src = (cairo_image_surface_t *)src;
|
||||
|
||||
clone = (cairo_xlib_surface_t *)
|
||||
_cairo_xlib_surface_create_similar (surface, image_src->format, 0,
|
||||
_cairo_xlib_surface_create_similar (surface, image_src->format,
|
||||
image_src->width, image_src->height);
|
||||
if (clone == NULL)
|
||||
return CAIRO_STATUS_NO_MEMORY;
|
||||
|
|
|
|||
|
|
@ -565,7 +565,6 @@ typedef struct _cairo_surface_backend {
|
|||
cairo_surface_t *
|
||||
(*create_similar) (void *surface,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height);
|
||||
|
||||
|
|
@ -1368,7 +1367,6 @@ _cairo_path_fixed_stroke_to_traps (cairo_path_fixed_t *path,
|
|||
cairo_private cairo_surface_t *
|
||||
_cairo_surface_create_similar_scratch (cairo_surface_t *other,
|
||||
cairo_format_t format,
|
||||
int drawable,
|
||||
int width,
|
||||
int height);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue