static void GrDrawImageFromBufferWrapper(void *r) { imagelist_t *buffer; nxDrawImageFromBufferReq *req = r; buffer = findImageBuffer(req->buffer); if (!buffer) return; GrDrawImageFromBuffer(req->drawid, req->gcid, req->x, req->y, req->width, req->height, buffer->data, buffer->size, req->flags); freeImageBuffer(buffer); }
void GrDrawImageFromBufferWrapper(void *r) { imagelist_t *buffer = 0; nxDrawImageFromBufferReq *req = r; for(buffer = imageListHead; buffer; buffer = buffer->next) if (buffer->id == req->buffer) break; if (!buffer) return; GrDrawImageFromBuffer(req->drawid, req->gcid, req->x, req->y, req->width, req->height, buffer->data, buffer->size, req->flags); freeImageBuffer(buffer); }