MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / nsvg__createGradientLink

Function nsvg__createGradientLink

rEFIt_UEFI/libeg/nanosvg.cpp:799–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799static NSVGgradientLink* nsvg__createGradientLink(const char* id)
800{
801 NSVGgradientLink* grad = (NSVGgradientLink*)AllocateZeroPool(sizeof(NSVGgradientLink));
802 if (grad == NULL) return NULL;
803 strncpy(grad->id, id, 63);
804 grad->id[63] = '\0';
805 return grad;
806}
807
808static void nsvg__getLocalBounds(float* bounds, NSVGshape *shape); //, float* xform);
809

Callers 1

nsvg__addShapeFunction · 0.85

Calls 2

AllocateZeroPoolFunction · 0.50
strncpyFunction · 0.50

Tested by

no test coverage detected