mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-08 09:18:08 +00:00
Add missing struct field initializers
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
6af29a97ac
commit
ff25524948
@ -2988,7 +2988,7 @@ static void canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox,
|
||||
{
|
||||
CanvasBase *canvas = (CanvasBase *)spice_canvas;
|
||||
SpiceCanvas *surface_canvas = NULL;
|
||||
StrokeGC gc = { { 0 } };
|
||||
StrokeGC gc;
|
||||
lineGCOps ops = {
|
||||
stroke_fill_spans,
|
||||
stroke_fill_rects
|
||||
@ -2997,6 +2997,8 @@ static void canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox,
|
||||
unsigned int i;
|
||||
int dashed;
|
||||
|
||||
memset(&gc, 0, sizeof(gc));
|
||||
|
||||
pixman_region32_init_rect(&gc.dest_region,
|
||||
bbox->left, bbox->top,
|
||||
bbox->right - bbox->left,
|
||||
|
||||
@ -659,7 +659,7 @@ static void __blend_image(SpiceCanvas *spice_canvas,
|
||||
|
||||
mask = NULL;
|
||||
if (overall_alpha != 0xff) {
|
||||
pixman_color_t color = { 0 };
|
||||
pixman_color_t color = { 0, 0, 0, 0 };
|
||||
color.alpha = overall_alpha * 0x101;
|
||||
mask = pixman_image_create_solid_fill(&color);
|
||||
}
|
||||
@ -752,7 +752,7 @@ static void __blend_scale_image(SpiceCanvas *spice_canvas,
|
||||
|
||||
mask = NULL;
|
||||
if (overall_alpha != 0xff) {
|
||||
pixman_color_t color = { 0 };
|
||||
pixman_color_t color = { 0, 0, 0, 0 };
|
||||
color.alpha = overall_alpha * 0x101;
|
||||
mask = pixman_image_create_solid_fill(&color);
|
||||
}
|
||||
@ -1044,7 +1044,7 @@ static void canvas_draw_text(SpiceCanvas *spice_canvas, SpiceRect *bbox,
|
||||
pixman_region32_t dest_region;
|
||||
pixman_image_t *str_mask, *brush;
|
||||
SpiceString *str;
|
||||
SpicePoint pos = { 0, };
|
||||
SpicePoint pos = { 0, 0 };
|
||||
int depth;
|
||||
|
||||
pixman_region32_init_rect(&dest_region,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user