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

Function PiuApplication_set_clut

modules/piu/MC/piuView.c:1344–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344void PiuApplication_set_clut(xsMachine* the)
1345{
1346#if kCommodettoBitmapCLUT16 == kPocoPixelFormat
1347 PiuApplication* self = PIU(Application, xsThis);
1348 PiuView* view = (*self)->view;
1349 Poco poco = (*view)->poco;
1350 poco->clut = xsGetHostData(xsArg(0));
1351 xsVars(2);
1352 xsVar(0) = xsReference((*view)->screen);
1353 xsVar(1) = xsNewHostObject(NULL);
1354 xsSetHostBuffer(xsVar(1), (16 * 16 * 16) + (16 * 2) + (uint8_t *)poco->clut, 16 * 2);
1355 xsSet(xsVar(0), xsID_clut, xsVar(1));
1356 PiuViewInvalidate(view, NULL);
1357#endif
1358}
1359
1360void PiuApplication_get_rotation(xsMachine* the)
1361{

Callers

nothing calls this directly

Calls 1

PiuViewInvalidateFunction · 0.70

Tested by

no test coverage detected