summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-05-03 14:33:00 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-05-03 14:33:00 +0000
commit2f9a58d6084f4ba3fa16c5ca72c5a253d68f9ef8 (patch)
tree817707ecd15ab929477d0bfba7ded47ba20fa32c /fluid
parent5122f3b6f37ae48f5edc6b2c07f3141c8b44683d (diff)
Don't open the display to load a .fl file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Window_Type.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 530a9a159..c778084d0 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.3 2002/05/01 19:17:24 easysw Exp $"
+// "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.4 2002/05/03 14:33:00 easysw Exp $"
//
// Window type code for the Fast Light Tool Kit (FLTK).
//
@@ -251,8 +251,10 @@ Fl_Type *Fl_Window_Type::make() {
this->o = new Fl_Window(100,100);
Fl_Group::current(0);
}
+ // Set the size ranges for this window; in order to avoid opening the
+ // X display we use an arbitrary maximum size...
((Fl_Window *)(this->o))->size_range(gridx * snap, gridy * snap,
- Fl::w(), Fl::h(),
+ 3072, 2048,
gridx * snap, gridy * snap, 0);
myo->factory = this;
myo->drag = 0;
@@ -790,5 +792,5 @@ int Fl_Window_Type::read_fdesign(const char* name, const char* value) {
}
//
-// End of "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.3 2002/05/01 19:17:24 easysw Exp $".
+// End of "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.4 2002/05/03 14:33:00 easysw Exp $".
//