mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
Fix image decompression
This commit is contained in:
@@ -97,6 +97,7 @@ pixel *ptif_unpack(void *datain, int size, int *w, int *h){
|
|||||||
width = data[4]|(data[5]<<8);
|
width = data[4]|(data[5]<<8);
|
||||||
height = data[6]|(data[7]<<8);
|
height = data[6]|(data[7]<<8);
|
||||||
|
|
||||||
|
i = (width*height)*3;
|
||||||
undata = calloc(1, (width*height)*3);
|
undata = calloc(1, (width*height)*3);
|
||||||
red_chan = calloc(1, width*height);
|
red_chan = calloc(1, width*height);
|
||||||
green_chan = calloc(1, width*height);
|
green_chan = calloc(1, width*height);
|
||||||
|
Reference in New Issue
Block a user