diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Panorama.cxx | 2 | ||||
-rw-r--r-- | src/gipfel.cxx | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 19bdb18..516b688 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -87,7 +87,7 @@ int Panorama::set_viewpoint(const char *name) { Hill *m = get_pos(name); if (m == NULL) { - fprintf(stderr, "Could not find exactly one entry for %s.\n"); + fprintf(stderr, "Could not find exactly one entry for %s.\n", name); return 1; } diff --git a/src/gipfel.cxx b/src/gipfel.cxx index c5cc216..db579de 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -59,7 +59,7 @@ static int stitch(GipfelWidget::sample_mode_t m , int b_16, int stitch_w, int stitch_h, double from, double to, int type, const char *path, int argc, char **argv); -static int export_hills(const char *file); +static int export_hills(const char *file, double visibility); void set_values() { double k0 = 0.0, k1 = 0.0, x0 = 0.0; @@ -521,7 +521,7 @@ int main(int argc, char** argv) { type, outpath, my_argc, my_argv); } else if (export_file) { - return export_hills(export_file); + return export_hills(export_file, visibility); } Fl::get_system_colors(); @@ -633,13 +633,14 @@ stitch(GipfelWidget::sample_mode_t m, int b_16, } static int -export_hills(const char *file) { +export_hills(const char *file, double visibility) { int ret = 1; if (img_file) { gipf = new GipfelWidget(0,0,800,600); gipf->load_image(img_file); gipf->load_data(data_file); + gipf->set_height_dist_ratio(visibility); ret = gipf->export_hills(file); delete gipf; gipf = NULL; |