Changed implementation of hfzLoad
functions such that the file header argument is nulled with a call to hfzHeader_Init
rather than hfzHeader_Reset
. Callers are now responsible for ensuring that headers have been reset if they have been initialised prior to any calls to hfzLoad
Bug-fix for hfzRead
to return number of bytes written when in binary mode. Previously, hfzRead was returning 1 when in binary mode and the number of bytes written when in gzip mode (thanks Joe!
Critical bugfix for hfzWriteTile
function, which was incorrectly calculating the maximum altitude for tiles.
to be overridable by setting the hfzFopenProc
, which are overridable by setting the hfzMallocProc
Fixed hfzWrite for non-compressed streams (prevented write of HF2)
Fixed hfzWriteTile for tiles that are 'short' in x-axis.
Changed HfzFile struct. Now not using union.