summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-07-30 20:41:30 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-07-30 20:41:30 +0100
commit2f3f9f45c9bc0044f0fcc8d01024f884b4233f5d (patch)
treec31eb73de422bc54585055529547cbac4e543369 /src
parent9645b4f9b25734ae6ff9fd9bae2fa1e607484c0e (diff)
adjust window size
Diffstat (limited to 'src')
-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);