| 230 | } |
| 231 | |
| 232 | void 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 | |
| 250 | void PiuGIFImage_create(xsMachine* the) |
| 251 | { |
nothing calls this directly
no test coverage detected