summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gipfel.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index d5392a0..79199ec 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -313,12 +313,18 @@ int main(int argc, char** argv) {
control_win = create_control_window();
- view_win = new Fl_Window(700, 500);
+ view_win = new Fl_Window(800, 600);
scroll = new Fl_Scroll(0, 0, view_win->w(), view_win->h());
- gipf = new GipfelWidget(0,0,700,500);
+ gipf = new GipfelWidget(0,0,800,600);
gipf->load_image(img_file);
+ if (gipf->w() < 1024 && gipf->h() < 768) {
+ view_win->size(gipf->w(), gipf->h());
+ scroll->size(gipf->w(), gipf->h());
+ }
+
+
gipf->load_data(data_file);
if (view_point) {
gipf->set_viewpoint(view_point);