summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-24 11:39:20 +0100
committerMatthias Melcher <github@matthiasm.com>2022-11-24 11:39:29 +0100
commit6f36a6362982b08574e27a61d9c8716fe5aac8a8 (patch)
tree851ca6f3001b439b71806ea132c8adfbf063cf49 /fluid/Fl_Window_Type.h
parente19d2d98ba904883ff656640b1bbada3956d7cc1 (diff)
Fixes some FLUID bugs
Fl_Flex would not change type when it had no children. Function evaluation could read past string end. Fl_Window_Type would not initialise all member variables.
Diffstat (limited to 'fluid/Fl_Window_Type.h')
-rw-r--r--fluid/Fl_Window_Type.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/fluid/Fl_Window_Type.h b/fluid/Fl_Window_Type.h
index 41cf73f4b..05a2777ca 100644
--- a/fluid/Fl_Window_Type.h
+++ b/fluid/Fl_Window_Type.h
@@ -67,7 +67,18 @@ protected:
public:
- Fl_Window_Type() { drag = dx = dy = 0; sr_min_w = sr_min_h = sr_max_w = sr_max_h = 0; }
+ Fl_Window_Type() :
+ mx(0), my(0),
+ x1(0), y1(0),
+ bx(0), by(0), br(0), bt(0),
+ sx(0), sy(0), sr(0), st(0),
+ dx(0), dy(0),
+ drag(0),
+ numselected(0),
+ recalc(0),
+ modal(0), non_modal(0),
+ sr_min_w(0), sr_min_h(0), sr_max_w(0), sr_max_h(0)
+ { }
uchar modal, non_modal;
Fl_Type *make(Strategy strategy);