Fix height width and makefule issues

This commit is contained in:
Gareth Evans
2017-06-01 22:58:06 +01:00
parent 9fa61bc68d
commit 67c145dd7d
3 changed files with 24 additions and 20 deletions

View File

@@ -76,6 +76,8 @@ int resample_data(int scaling_factor){
fprintf(stderr, "Resampling IPPD %d->%d min/max el %d/%d\n", IPPD, new_ippd, min_elevation, max_elevation);
/* Finally, set the new IPPD value */
height /= scaling_factor;
width /= scaling_factor;
IPPD = new_ippd;
ippd = IPPD;
ARRAYSIZE = (MAXPAGES * IPPD) + 50;