diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-11 22:25:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-11 23:25:52 +0200 |
| commit | 33b601e57404fcef058a992ba7767f2c4f16a81b (patch) | |
| tree | 15747e586b76618734442db6054e219b1af4511b /src/Fl_Input_Choice.cxx | |
| parent | e2c2ba777362f9d231e8b7281c764132038b8d61 (diff) | |
Synchronize all arrow colors and inactive drawing (#791)
Diffstat (limited to 'src/Fl_Input_Choice.cxx')
| -rw-r--r-- | src/Fl_Input_Choice.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx index 059a1cc2d..fcb9f9c55 100644 --- a/src/Fl_Input_Choice.cxx +++ b/src/Fl_Input_Choice.cxx @@ -136,10 +136,10 @@ Fl_Input_Choice::InputMenuButton::InputMenuButton(int x,int y,int w,int h,const void Fl_Input_Choice::InputMenuButton::draw() { draw_box(); - fl_color(active_r() ? labelcolor() : fl_inactive(labelcolor())); + Fl_Color arrow_color = parent()->active_r() ? parent()->labelcolor() : fl_inactive(parent()->labelcolor()); Fl_Rect ab(this); ab.inset(1); - fl_draw_arrow(ab, FL_ARROW_CHOICE, FL_ORIENT_NONE, fl_color()); + fl_draw_arrow(ab, FL_ARROW_CHOICE, FL_ORIENT_NONE, arrow_color); if (Fl::focus() == this) draw_focus(); } |
