summaryrefslogtreecommitdiffstats
path: root/common/canvas_base.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-26 13:47:15 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-26 14:01:37 +0200
commite52974c7b46a17f74c6ab54eaadb8c4461e0d46f (patch)
tree9de6e47edfaf9605ebd6e872e7673f9d651c04f7 /common/canvas_base.c
parent16328d20357a8bc4630656af350772b0bd14f8f1 (diff)
downloadspice-e52974c7b46a17f74c6ab54eaadb8c4461e0d46f.tar.gz
spice-e52974c7b46a17f74c6ab54eaadb8c4461e0d46f.tar.xz
spice-e52974c7b46a17f74c6ab54eaadb8c4461e0d46f.zip
fix two warnings
Diffstat (limited to 'common/canvas_base.c')
-rw-r--r--common/canvas_base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index c305f4df..add43ebc 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -2164,6 +2164,8 @@ static void canvas_draw_transparent(SpiceCanvas *spice_canvas, SpiceRect *bbox,
case SPICE_SURFACE_FMT_16_565:
transparent_color = rgb_32_to_16_565(transparent->true_color);
break;
+ default:
+ transparent_color = 0;
}
surface_canvas = canvas_get_surface(canvas, transparent->src_bitmap);