summaryrefslogtreecommitdiff
path: root/src/Fl_Color_Chooser.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-07 08:51:44 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-07 08:51:44 +0000
commit51d37642ba4f9071ac178328cec7d421d4724187 (patch)
tree6ac5e6ad6e0b210b2b8bf32168752787bdb46db4 /src/Fl_Color_Chooser.cxx
parent6c793587e3305a4de1a080bb5663a356392c1075 (diff)
Contributed code for more accurate item_height() in Fl_Browser.
Fixed display of Fl_Choice yet again Tried to remove warning egcs warning messages from Fl_Color_Chooser Fl_Value_Input updates without user having to type Enter git-svn-id: file:///fltk/svn/fltk/trunk@374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Color_Chooser.cxx')
-rw-r--r--src/Fl_Color_Chooser.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Fl_Color_Chooser.cxx b/src/Fl_Color_Chooser.cxx
index 4252ac9c0..a51f16c15 100644
--- a/src/Fl_Color_Chooser.cxx
+++ b/src/Fl_Color_Chooser.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Color_Chooser.cxx,v 1.6 1999/01/13 15:47:27 mike Exp $"
+// "$Id: Fl_Color_Chooser.cxx,v 1.7 1999/03/07 08:51:43 bill Exp $"
//
// Color chooser for the Fast Light Tool Kit (FLTK).
//
@@ -402,8 +402,9 @@ int fl_color_chooser(const char* name, double& r, double& g, double& b) {
window.show();
while (window.shown()) {
Fl::wait();
- Fl_Widget* o;
- while ((o = Fl::readqueue())) {
+ for (;;) {
+ Fl_Widget* o = Fl::readqueue();
+ if (!o) break;
if (o == &ok_button) {
r = chooser.r();
g = chooser.g();
@@ -430,5 +431,5 @@ int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b) {
}
//
-// End of "$Id: Fl_Color_Chooser.cxx,v 1.6 1999/01/13 15:47:27 mike Exp $".
+// End of "$Id: Fl_Color_Chooser.cxx,v 1.7 1999/03/07 08:51:43 bill Exp $".
//