diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-08-09 19:34:05 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-08-09 19:34:05 +0200 |
commit | 49558f7ddeb39c08410231b90482abfd01c5d151 (patch) | |
tree | 4238f1fcf7d966ee408605725ff570398a2a38ef /src | |
parent | d96a0ddb1d6713d690b691e91e03e7506b09c70c (diff) | |
parent | 156f9abea4f1a575324e5b9269d48407241718c3 (diff) |
also use visibility in export mode
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; |