MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuGIFImageUnbind

Function PiuGIFImageUnbind

modules/piu/MC/gif/piuGIFImage.c:232–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void PiuGIFImageUnbind(void* it, PiuApplication* application, PiuView* view)
233{
234 PiuGIFImage* self = it;
235 PiuContentUnbind(it, application, view);
236 if ((*self)->gif) {
237 xsBeginHost((*self)->the);
238 xsVars(2);
239 xsVar(0) = xsReference((*self)->reference);
240 xsVar(1) = xsReference((*self)->gif);
241 xsCall1(xsVar(0), xsID_unload, xsVar(1));
242 (*self)->frameCount = 0;
243 (*self)->gifHeight= 0;
244 (*self)->gifWidth = 0;
245 (*self)->gif = NULL;
246 xsEndHost((*self)->the);
247 }
248}
249
250void PiuGIFImage_create(xsMachine* the)
251{

Callers

nothing calls this directly

Calls 1

PiuContentUnbindFunction · 0.85

Tested by

no test coverage detected