Revision 298
implemented chat. changed place of some macros
font.c | ||
---|---|---|
170 | 170 |
if(alp_new_buf == NULL) return ALLOC_ERROR; |
171 | 171 |
|
172 | 172 |
for(size_t newy = 0; newy < newH; ++newy){ |
173 |
size_t y = newy/factor+0.5;
|
|
173 |
size_t y = newy/factor; |
|
174 | 174 |
for(size_t newx = 0; newx < newW; ++newx){ |
175 |
size_t x = newx/factor+0.5;
|
|
175 |
size_t x = newx/factor; |
|
176 | 176 |
*(alp_new_buf+newx+newy*newW) = *(alp_buf+x+y*W); |
177 | 177 |
} |
178 | 178 |
} |
Also available in: Unified diff