summaryrefslogtreecommitdiff
path: root/src/Fl_Dial.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_Dial.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_Dial.cxx')
-rw-r--r--src/Fl_Dial.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Dial.cxx b/src/Fl_Dial.cxx
index 2a9df4769..fb9f5e8de 100644
--- a/src/Fl_Dial.cxx
+++ b/src/Fl_Dial.cxx
@@ -37,7 +37,7 @@ void Fl_Dial::draw(int X, int Y, int W, int H) {
double angle = (a2-a1)*(value()-minimum())/(maximum()-minimum()) + a1;
if (type() == FL_FILL_DIAL) {
// foo: draw this nicely in certain round box types
- int foo = (box() > _FL_ROUND_UP_BOX && Fl::box_dx(box()));
+ int foo = (box() > FL_ROUND_UP_BOX && Fl::box_dx(box()));
if (foo) {X--; Y--; W+=2; H+=2;}
if (active_r()) fl_color(color());
else fl_color(fl_inactive(color()));