buffer[14] = (height >> 0) & 0xFF;
buffer[15] = (height >> 8) & 0xFF;
buffer[16] = 32; // pixel size
+ buffer[17] = 8; // transparent flag? (seems to be needed by gimp)
// swap rgba to bgra and flip upside down
out = buffer + 18;
Mem_Free(resamplerow1);
resamplerowsize = outwidth*4;
if (!resamplemempool)
- resamplemempool = Mem_AllocPool("Image Scaling Buffer");
+ resamplemempool = Mem_AllocPool("Image Scaling Buffer", 0, NULL);
resamplerow1 = Mem_Alloc(resamplemempool, resamplerowsize*2);
resamplerow2 = resamplerow1 + resamplerowsize;
}