[Spice-commits] client/x11 common/canvas_base.c
Alexander Larsson
alexl at kemper.freedesktop.org
Mon Apr 26 05:02:54 PDT 2010
client/x11/platform.cpp | 2 +-
common/canvas_base.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
New commits:
commit e52974c7b46a17f74c6ab54eaadb8c4461e0d46f
Author: Gerd Hoffmann <kraxel at redhat.com>
Date: Mon Apr 26 13:47:15 2010 +0200
fix two warnings
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 33817e2..ea492ed 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -260,7 +260,7 @@ XImage *XPlatform::create_x_image(RedDrawable::Format format,
Visual *visual,
XShmSegmentInfo **shminfo_out)
{
- XImage *image;
+ XImage *image = NULL;
uint8_t *data;
size_t stride;
diff --git a/common/canvas_base.c b/common/canvas_base.c
index c305f4d..add43eb 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);
More information about the Spice-commits
mailing list