mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
canvas: Unify __surface_create_stride and surface_create_stride
They are now just the same function with same parameters, just one calls the other. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
3bf6e7b899
commit
0dda6fbf55
@ -84,8 +84,8 @@ int spice_pixman_image_get_format(pixman_image_t *image, pixman_format_code_t *f
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline pixman_image_t *__surface_create_stride(pixman_format_code_t format, int width, int height,
|
||||
int stride)
|
||||
pixman_image_t *surface_create_stride(pixman_format_code_t format, int width, int height,
|
||||
int stride)
|
||||
{
|
||||
uint8_t *data;
|
||||
uint8_t *stride_data;
|
||||
@ -157,16 +157,10 @@ pixman_image_t * surface_create(pixman_format_code_t format, int width, int heig
|
||||
spice_error("invalid format");
|
||||
}
|
||||
stride = -stride;
|
||||
return __surface_create_stride(format, width, height, stride);
|
||||
return surface_create_stride(format, width, height, stride);
|
||||
}
|
||||
}
|
||||
|
||||
pixman_image_t *surface_create_stride(pixman_format_code_t format, int width, int height,
|
||||
int stride)
|
||||
{
|
||||
return __surface_create_stride(format, width, height, stride);
|
||||
}
|
||||
|
||||
pixman_image_t *alloc_lz_image_surface(LzDecodeUsrData *canvas_data,
|
||||
pixman_format_code_t pixman_format, int width,
|
||||
int height, int gross_pixels, int top_down)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user