Ticket #271: tgalib.C.diff
File tgalib.C.diff, 442 bytes (added by , 17 years ago) |
---|
-
tgalib.C
old new 33 33 34 34 // Allocate the structure that will hold our eventual image data (must free it!) 35 35 pImageData = (tImageTGA*)malloc(sizeof(tImageTGA)); 36 if ( !pImageData ) 37 { 38 fclose(pFile); 39 return NULL; 40 } 36 41 37 42 // Read in the length in bytes from the header to the pixel data 38 43 fread(&length, sizeof(byte), 1, pFile);