diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-12-03 23:33:08 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-12-03 23:33:14 +0100 |
| commit | 87160b6eb9143e044926827b82a2df021cff9c83 (patch) | |
| tree | bf5b01ba02817eeed0efdb36545220fecd043bd3 /fluid/nodes | |
| parent | 20b07572df61c6fe7d8cde731aa88b2b145b316a (diff) | |
Remove boxtype linke trick.
By defining boxtypes with underscores, box
drawing cod ethat was not used was not linked,
but with the introduction of themes, all boxes
are available at all times. Reducing complexity.
Diffstat (limited to 'fluid/nodes')
| -rw-r--r-- | fluid/nodes/Widget_Node.cxx | 8 | ||||
| -rw-r--r-- | fluid/nodes/Window_Node.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fluid/nodes/Widget_Node.cxx b/fluid/nodes/Widget_Node.cxx index 7a2a7c98a..e711c03f0 100644 --- a/fluid/nodes/Widget_Node.cxx +++ b/fluid/nodes/Widget_Node.cxx @@ -2258,10 +2258,10 @@ void Widget_Node::read_property(fld::io::Project_Reader &f, const char *c) { Fl_Menu_Item boxmenu1[] = { // these extra ones are for looking up fdesign saved strings: {"NO_FRAME", 0,nullptr,(void *)FL_NO_BOX}, - {"ROUNDED3D_UPBOX", 0,nullptr,(void *)_FL_ROUND_UP_BOX}, - {"ROUNDED3D_DOWNBOX", 0,nullptr,(void *)_FL_ROUND_DOWN_BOX}, - {"OVAL3D_UPBOX", 0,nullptr,(void *)_FL_ROUND_UP_BOX}, - {"OVAL3D_DOWNBOX", 0,nullptr,(void *)_FL_ROUND_DOWN_BOX}, + {"ROUNDED3D_UPBOX", 0,nullptr,(void *)FL_ROUND_UP_BOX}, + {"ROUNDED3D_DOWNBOX", 0,nullptr,(void *)FL_ROUND_DOWN_BOX}, + {"OVAL3D_UPBOX", 0,nullptr,(void *)FL_ROUND_UP_BOX}, + {"OVAL3D_DOWNBOX", 0,nullptr,(void *)FL_ROUND_DOWN_BOX}, {"0", 0,nullptr,(void *)ZERO_ENTRY}, {"1", 0,nullptr,(void *)FL_UP_BOX}, {"2", 0,nullptr,(void *)FL_DOWN_BOX}, diff --git a/fluid/nodes/Window_Node.cxx b/fluid/nodes/Window_Node.cxx index 412a04804..e63debebe 100644 --- a/fluid/nodes/Window_Node.cxx +++ b/fluid/nodes/Window_Node.cxx @@ -157,7 +157,7 @@ void Overlay_Window::draw() { const int CHECKSIZE = 8; // see if box is clear or a frame or rounded: if ((damage()&FL_DAMAGE_ALL) && - (!box() || (box()>=4&&!(box()&2)) || box()>=_FL_ROUNDED_BOX)) { + (!box() || (box()>=4&&!(box()&2)) || box()>=FL_ROUNDED_BOX)) { // if so, draw checkerboard so user can see what areas are clear: for (int Y = 0; Y < h(); Y += CHECKSIZE) for (int X = 0; X < w(); X += CHECKSIZE) { |
