1410
1414
if(!(newdata = cli_malloc(newsize * newsize * sizeof(*newdata)))) {
1414
1417
cli_dbgmsg("parseicon: Slow scaling to %ux%u (%f, %f)\n", newsize, newsize, scalex, scaley);
1415
1418
for(y = 0; y<newsize; y++) {
1417
1420
for(x = 0; x<newsize; x++)
1418
1421
newdata[y*newsize + x] = imagedata[oldy + (unsigned int)(x * scalex + 0.5f)];