From 87160b6eb9143e044926827b82a2df021cff9c83 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 3 Dec 2025 23:33:08 +0100 Subject: 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. --- src/Fl_Light_Button.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Light_Button.cxx') 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()) { -- cgit v1.2.3