summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-02-20 22:03:39 +0100
committerGitHub <noreply@github.com>2022-02-20 22:03:39 +0100
commit72fe8c6035efa7c35ea824005ba65df05cca3037 (patch)
tree5b3353e3f3400d294a67cf46949e1ebebf3b91ee /fluid/Fl_Window_Type.cxx
parenta878e253adc900b2cac8abe1a1d8f17eb4555f75 (diff)
Fluid: no grid on window resizing. (#399)
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index d5da99716..b10da85b5 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -99,9 +99,7 @@ void grid_cb(Fl_Int_Input *i, long v) {
for (p = Fl_Type::first; p; p = p->next) {
if (p->is_window()) {
w = (Fl_Window_Type *)p;
- ((Fl_Window *)(w->o))->size_range(gridx, gridy,
- Fl::w(), Fl::h(),
- gridx, gridy, 0);
+ ((Fl_Window *)(w->o))->size_range(gridx, gridy, Fl::w(), Fl::h());
}
}
}
@@ -406,9 +404,7 @@ Fl_Type *Fl_Window_Type::make(Strategy strategy) {
}
// 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, gridy,
- 3072, 2048,
- gridx, gridy, 0);
+ ((Fl_Window *)(this->o))->size_range(gridx, gridy, 6144, 4096);
myo->factory = this;
myo->drag = 0;
myo->numselected = 0;
@@ -460,7 +456,7 @@ void Fl_Window_Type::open() {
}
w->image(Fl::scheme_bg_);
- w->size_range(gridx, gridy, Fl::w(), Fl::h(), gridx, gridy, 0);
+ w->size_range(gridx, gridy, Fl::w(), Fl::h());
}
// Read an image of the window
@@ -1553,9 +1549,7 @@ Fl_Type *Fl_Widget_Class_Type::make(Strategy strategy) {
}
// 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, gridy,
- 3072, 2048,
- gridx, gridy, 0);
+ ((Fl_Window *)(this->o))->size_range(gridx, gridy, 6144, 4096);
myo->factory = this;
myo->drag = 0;
myo->numselected = 0;