Revision 183
can reduce letter size; working on increasing
sprite.c | ||
---|---|---|
65 | 65 |
for(int16_t x = max(0,p->x-diag); x < min(p->x+diag,graph_get_XRes()); ++x){ |
66 | 66 |
sprite_src2pic(p, x, y, &u, &v); |
67 | 67 |
if(0 <= u && u < p->w && 0 <= v && v < p->h){ |
68 |
uint8_t *m = p->map + (v*p->w + u)*4; |
|
69 |
uint32_t color = SET_RGB(*(m+2), *(m+1), *(m)); |
|
70 |
graph_set_pixel_alpha(p->x + x, p->y + y, color, *(m+3)); |
|
68 |
uint32_t c = *(uint32_t*)(p->map + (v*p->w + u)*4); |
|
69 |
graph_set_pixel_alpha(p->x + x, p->y + y, GET_COLOR(c), GET_ALP(c)); |
|
71 | 70 |
} |
72 | 71 |
} |
73 | 72 |
} |
Also available in: Unified diff