Lines Matching defs:desty
461 void gfx_surface_blend(struct gfx_surface* target, struct gfx_surface* source, unsigned destx, unsigned desty) {
462 gfx_blend(target, source, 0, 0, source->width, source->height, destx, desty);
468 void gfx_blend(gfx_surface* target, gfx_surface* source, unsigned srcx, unsigned srcy, unsigned width, unsigned height, unsigned destx, unsigned desty) {
471 xprintf("target %p, source %p, srcx %u, srcy %u, width %u, height %u, destx %u, desty %u\n", target, source, srcx, srcy, width, height, destx, desty);
475 if (desty >= target->height)
485 if (desty + height > target->height)
486 height = target->height - desty;
497 uint16_t* dest = &((uint16_t*)target->ptr)[destx + desty * target->stride];
516 uint32_t* dest = &((uint32_t*)target->ptr)[destx + desty * target->stride];
536 uint32_t* dest = &((uint32_t*)target->ptr)[destx + desty * target->stride];
555 uint8_t* dest = &((uint8_t*)target->ptr)[destx + desty * target->stride];