Revision 189
fixed drawing
sprite.c | ||
---|---|---|
69 | 69 |
sprite_src2pic(p, x, y, &u, &v); |
70 | 70 |
if(0 <= u && u < p->w && 0 <= v && v < p->h){ |
71 | 71 |
uint32_t c = *(uint32_t*)(p->map + (v*p->w + u)*4); |
72 |
graph_set_pixel_alpha(p->x + x, p->y + y, GET_COLOR(c), GET_ALP(c));
|
|
72 |
graph_set_pixel_alpha(x, y, GET_COLOR(c), GET_ALP(c));
|
|
73 | 73 |
} |
74 | 74 |
} |
75 | 75 |
} |
Also available in: Unified diff