[Spice-devel] [PATCH spice-common 5/8] canvas: Remove dc parameter from SwCanvas::put_image

Frediano Ziglio fziglio at redhat.com
Wed Jan 17 11:31:07 UTC 2018


Not used anymore.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 common/canvas_base.h | 3 ---
 common/sw_canvas.c   | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/common/canvas_base.h b/common/canvas_base.h
index 2d3c35b..b746bcb 100644
--- a/common/canvas_base.h
+++ b/common/canvas_base.h
@@ -141,9 +141,6 @@ typedef struct {
     void (*draw_transparent)(SpiceCanvas *canvas, SpiceRect *bbox, SpiceClip *clip, SpiceTransparent* transparent);
     void (*draw_alpha_blend)(SpiceCanvas *canvas, SpiceRect *bbox, SpiceClip *clip, SpiceAlphaBlend* alpha_blend);
     void (*put_image)(SpiceCanvas *canvas,
-#ifdef WIN32
-                      HDC dc,
-#endif
                       const SpiceRect *dest, const uint8_t *src_data,
                       uint32_t src_width, uint32_t src_height, int src_stride,
                       const QRegion *clip);
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index c347a56..c41edb1 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -993,9 +993,6 @@ static void colorkey_scale_image_from_surface(SpiceCanvas *spice_canvas,
 }
 
 static void canvas_put_image(SpiceCanvas *spice_canvas,
-#ifdef WIN32
-                             HDC dc,
-#endif
                              const SpiceRect *dest, const uint8_t *src_data,
                              uint32_t src_width, uint32_t src_height, int src_stride,
                              const QRegion *clip)
-- 
2.14.3



More information about the Spice-devel mailing list