mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-11 11:26:33 +00:00
fix two warnings
This commit is contained in:
parent
16328d2035
commit
e52974c7b4
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user