summaryrefslogtreecommitdiff
path: root/src/Fl_Light_Button.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-12-03 23:33:08 +0100
committerMatthias Melcher <github@matthiasm.com>2025-12-03 23:33:14 +0100
commit87160b6eb9143e044926827b82a2df021cff9c83 (patch)
treebf5b01ba02817eeed0efdb36545220fecd043bd3 /src/Fl_Light_Button.cxx
parent20b07572df61c6fe7d8cde731aa88b2b145b316a (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 'src/Fl_Light_Button.cxx')
-rw-r--r--src/Fl_Light_Button.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Light_Button.cxx b/src/Fl_Light_Button.cxx
index 98ef910e6..db1616d5b 100644
--- a/src/Fl_Light_Button.cxx
+++ b/src/Fl_Light_Button.cxx
@@ -60,8 +60,8 @@ void Fl_Light_Button::draw() {
switch (down_box()) {
case FL_DOWN_BOX :
case FL_UP_BOX :
- case _FL_PLASTIC_DOWN_BOX :
- case _FL_PLASTIC_UP_BOX :
+ case FL_PLASTIC_DOWN_BOX :
+ case FL_PLASTIC_UP_BOX :
// Check box...
draw_box(down_box(), cx, cy, W, W, FL_BACKGROUND2_COLOR);
if (value()) {
@@ -73,8 +73,8 @@ void Fl_Light_Button::draw() {
fl_draw_check(Fl_Rect(cx, cy, cw, cw), check_color);
}
break;
- case _FL_ROUND_DOWN_BOX :
- case _FL_ROUND_UP_BOX :
+ case FL_ROUND_DOWN_BOX :
+ case FL_ROUND_UP_BOX :
// Radio button...
draw_box(down_box(), x()+dx, y()+dy, W, W, FL_BACKGROUND2_COLOR);
if (value()) {