-Subproject commit 4acb2090ee4f966c74298344646b3d33076e0e21
+Subproject commit 98dd8e145744f06865ec964e9cae9c9dea461668
* @return The new vkvg surface with the parsed SVG fragment as content, or null if an error occured.
*/
vkvg_public
-VkvgSurface vkvg_surface_create_from_svg_fragment(VkvgDevice dev, uint32_t width, uint32_t height, char* svgFragment);
+VkvgSurface vkvg_surface_create_from_svg_fragment(VkvgDevice dev, uint32_t width, uint32_t height, const char* svgFragment);
#ifndef VKVG_SVG
/*! @defgroup nsvg Nano SVG
ctx->pushConsts.source = bounds;
//transform control point with current ctx matrix
- vkvg_gradient_t grad = {0};
- memcpy (&grad, pat->data, sizeof(vkvg_gradient_t));
+ vkvg_gradient_t grad = *(vkvg_gradient_t*)pat->data;
if (grad.count < 2) {
ctx->status = VKVG_STATUS_PATTERN_INVALID_GRADIENT;