summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-29 21:16:14 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-29 21:16:14 +0200
commitfe07ad525e8326bf857d5ac8e1998ff3b7c343d1 (patch)
treed9fb656b1408f192478f096d8fea90cdf5db6e9a /src
parent70a6e7c52eb8830e7e2c5884247201defdeb6a1c (diff)
use image files from command line for stitching
Diffstat (limited to 'src')
-rw-r--r--src/gipfel.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 3a68ec3..a5b0fc9 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -422,17 +422,9 @@ int stitch(int stitch_w, int stitch_h, int argc, char **argv) {
Fl_Scroll *scroll;
Stitch *st = new Stitch();
- st->load_image("test1.jpg");
- st->load_image("test2.jpg");
- st->load_image("test3.jpg");
- st->load_image("test4.jpg");
- st->load_image("test5.jpg");
- st->load_image("test6.jpg");
- st->load_image("test7.jpg");
- st->load_image("test8.jpg");
- st->load_image("test9.jpg");
- st->load_image("test10.jpg");
- st->load_image("test11.jpg");
+ for (int i=0; i<argc; i++) {
+ st->load_image(argv[i]);
+ }
win = new Fl_Window(0,0, 1000, stitch_h);
scroll = new Fl_Scroll(0, 0, win->w(), win->h());