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

Function PiuScreenUnbind

modules/piu/PC/Screen/win/piuScreen.cpp:440–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void PiuScreenUnbind(void* it, PiuApplication* application, PiuView* view)
441{
442 PiuScreen* self = (PiuScreen*)it;
443 txScreen* screen = (*self)->screen;
444 PiuScreenQuit(self);
445 DestroyWindow((*self)->window);
446 (*self)->control = NULL;
447 (*self)->window = NULL;
448
449 delete (*self)->colorMatrix;
450 (*self)->colorMatrix = NULL;
451 delete (*self)->imageAttributes;
452 (*self)->imageAttributes = NULL;
453 delete (*self)->bitmap;
454 (*self)->bitmap = NULL;
455 mxDeleteMutex(&screen->workersMutex);
456 free(screen);
457 (*self)->screen = NULL;
458 PiuContentUnbind(it, application, view);
459}
460
461void PiuScreen_create(xsMachine* the)
462{

Callers

nothing calls this directly

Calls 2

PiuContentUnbindFunction · 0.85
PiuScreenQuitFunction · 0.70

Tested by

no test coverage detected