summaryrefslogtreecommitdiff
path: root/src/Fl_Input_Choice.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-24 19:00:00 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-25 00:00:48 +0100
commitb1ba37c5ba1df543baa87d328805af34da4bd2b1 (patch)
tree01d6ff63843cd9ed1f58fd2ab201f462bf11a385 /src/Fl_Input_Choice.cxx
parent40f376a6f707e6c5ae69c0f73300575bd79e28e3 (diff)
Add "Oxy" scheme (STR 2675, STR 3477)
This commit is similar to the patch given in STR 3477, oxy_v5.diff: https://www.fltk.org/strfiles/3477/oxy_v5.diff ... with modifications, and updated to current FLTK code.
Diffstat (limited to 'src/Fl_Input_Choice.cxx')
-rw-r--r--src/Fl_Input_Choice.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx
index 4cf8712e6..ae38cd1c6 100644
--- a/src/Fl_Input_Choice.cxx
+++ b/src/Fl_Input_Choice.cxx
@@ -5,7 +5,7 @@
// | input area || \/ |
// |______________||____|
//
-// Copyright 1998-2017 by Bill Spitzak and others.
+// Copyright 1998-2022 by Bill Spitzak and others.
// Copyright 2004 by Greg Ercolano.
//
// This library is free software. Distribution and use rights are outlined in
@@ -137,8 +137,9 @@ 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()));
- int xc = x()+w()/2, yc=y()+h()/2;
- fl_polygon(xc-5,yc-3,xc+5,yc-3,xc,yc+3);
+ Fl_Rect ab(this);
+ ab.inset(1);
+ fl_draw_arrow(ab, FL_ARROW_CHOICE, FL_ORIENT_NONE, fl_color());
if (Fl::focus() == this) draw_focus();
}