diff --git a/src/vgcanvas/vgcanvas_cairo.c b/src/vgcanvas/vgcanvas_cairo.c index 0d8f4230c..308df39ef 100644 --- a/src/vgcanvas/vgcanvas_cairo.c +++ b/src/vgcanvas/vgcanvas_cairo.c @@ -881,6 +881,7 @@ vgcanvas_t* vgcanvas_create(uint32_t w, uint32_t h, uint32_t stride, bitmap_form cairo->base.h = h; cairo->base.vt = &vt; cairo->base.ratio = 1; + cairo->base.stride = stride; cairo->base.format = format; cairo->base.buff = (uint32_t*)data;