[Spice-devel] [PATCH 2/9] common/canvas_base.c: remove unused variables
Alon Levy
alevy at redhat.com
Tue Jan 25 07:33:58 PST 2011
---
common/canvas_base.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 3b0f801..796bda3 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -647,14 +647,12 @@ static pixman_image_t *canvas_bitmap_to_surface(CanvasBase *canvas, SpiceBitmap*
SpicePalette *palette, int want_original)
{
uint8_t* src;
- int src_stride;
pixman_image_t *image;
pixman_format_code_t format;
spice_chunks_linearize(bitmap->data);
src = bitmap->data->chunk[0].data;
- src_stride = bitmap->stride;
if (want_original) {
format = spice_bitmap_format_to_pixman(bitmap->format, canvas->format);
@@ -2528,11 +2526,6 @@ static void canvas_draw_blend(SpiceCanvas *spice_canvas, SpiceRect *bbox, SpiceC
bbox->top - blend->src_area.top,
rop);
} else {
- double sx, sy;
-
- sx = (double)(blend->src_area.right - blend->src_area.left) / (bbox->right - bbox->left);
- sy = (double)(blend->src_area.bottom - blend->src_area.top) / (bbox->bottom - bbox->top);
-
if (rop == SPICE_ROP_COPY) {
spice_canvas->ops->scale_image_from_surface(spice_canvas, &dest_region,
surface_canvas,
@@ -2574,11 +2567,6 @@ static void canvas_draw_blend(SpiceCanvas *spice_canvas, SpiceRect *bbox, SpiceC
bbox->top - blend->src_area.top,
rop);
} else {
- double sx, sy;
-
- sx = (double)(blend->src_area.right - blend->src_area.left) / (bbox->right - bbox->left);
- sy = (double)(blend->src_area.bottom - blend->src_area.top) / (bbox->bottom - bbox->top);
-
if (rop == SPICE_ROP_COPY) {
spice_canvas->ops->scale_image(spice_canvas, &dest_region,
src_image,
--
1.7.3.5
More information about the Spice-devel
mailing list