diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-25 22:11:52 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-25 22:11:52 +0000 |
| commit | 887fe14a2bc6b2919aeac6065b6628cd5f701235 (patch) | |
| tree | b16c84225ea4bbc7406ec1bd3a6ccc2392189bc2 /src/Fl_Choice.cxx | |
| parent | b6c5ed9c3332ea7d0a461f390bb81595ddceed6d (diff) | |
Fix Fl_Choice drawing bugs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Choice.cxx')
| -rw-r--r-- | src/Fl_Choice.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Choice.cxx b/src/Fl_Choice.cxx index 5b76867b1..8aca736ef 100644 --- a/src/Fl_Choice.cxx +++ b/src/Fl_Choice.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Choice.cxx,v 1.10.2.5.2.6 2002/01/01 15:11:30 easysw Exp $" +// "$Id: Fl_Choice.cxx,v 1.10.2.5.2.7 2002/03/25 22:11:52 easysw Exp $" // // Choice widget for the Fast Light Tool Kit (FLTK). // @@ -50,6 +50,8 @@ void Fl_Choice::draw() { fl_color(active_r() ? labelcolor() : fl_inactive(labelcolor())); fl_polygon(x1, y1, x1 + w1, y1 + w1, x1 + 2 * w1, y1); + W += 2 * dx; + if (mvalue()) { Fl_Menu_Item m = *mvalue(); if (active_r()) m.activate(); else m.deactivate(); @@ -117,5 +119,5 @@ int Fl_Choice::handle(int e) { } // -// End of "$Id: Fl_Choice.cxx,v 1.10.2.5.2.6 2002/01/01 15:11:30 easysw Exp $". +// End of "$Id: Fl_Choice.cxx,v 1.10.2.5.2.7 2002/03/25 22:11:52 easysw Exp $". // |
