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

Function pocoGetBitmapPixels

modules/commodetto/commodettoPocoCore.c:1252–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252PocoPixel *pocoGetBitmapPixels(xsMachine *the, Poco poco, CommodettoBitmap cb, int arg)
1253{
1254 xsSlot buffer;
1255 void *data;
1256 xsUnsignedValue dataSize;
1257 int32_t offset;
1258
1259 if (cb->havePointer)
1260 return (PocoPixel *)cb->bits.data;
1261
1262 offset = cb->bits.offset;
1263 xsmcGet(buffer, xsArg(arg), xsID_buffer);
1264 xsmcGetBufferReadable(buffer, &data, &dataSize);
1265 PocoDisableGC(poco);
1266 return (PocoPixel *)(offset + (char *)data);
1267}
1268
1269void PocoHold(xsMachine *the, Poco poco, xsSlot *holding)
1270{

Callers 6

xs_poco_drawBitmapFunction · 0.85
xs_poco_drawMonochromeFunction · 0.85
xs_poco_drawGrayFunction · 0.85
xs_poco_drawMaskedFunction · 0.85
xs_poco_fillPatternFunction · 0.85
xs_poco_drawTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected