From 0dda6fbf550d77c04fdc91aaa696490458abca3f Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Sun, 24 Dec 2017 14:42:23 +0000 Subject: [PATCH] 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 Acked-by: Christophe Fergeau --- common/canvas_utils.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/common/canvas_utils.c b/common/canvas_utils.c index 3e143de..a95501f 100644 --- a/common/canvas_utils.c +++ b/common/canvas_utils.c @@ -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)