| 1250 | } |
| 1251 | |
| 1252 | PocoPixel *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 | |
| 1269 | void PocoHold(xsMachine *the, Poco poco, xsSlot *holding) |
| 1270 | { |
no outgoing calls
no test coverage detected