summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-09 19:34:05 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-09 19:34:05 +0200
commit49558f7ddeb39c08410231b90482abfd01c5d151 (patch)
tree4238f1fcf7d966ee408605725ff570398a2a38ef /src/gipfel.cxx
parentd96a0ddb1d6713d690b691e91e03e7506b09c70c (diff)
parent156f9abea4f1a575324e5b9269d48407241718c3 (diff)
also use visibility in export mode
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx7
1 files changed, 4 insertions, 3 deletions
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;