| 1342 | } |
| 1343 | |
| 1344 | void 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 | |
| 1360 | void PiuApplication_get_rotation(xsMachine* the) |
| 1361 | { |
nothing calls this directly
no test coverage detected