Fix fl_show_colormap() documentation.

Show color chooser window before grabbing it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2002-11-15 02:06:57 +00:00
parent 9c557a3b87
commit b579acc9b3
2 changed files with 4 additions and 4 deletions

View File

@ -1106,7 +1106,7 @@ RGB or grayscale values.
<H3>Prototype</H3>
<UL><PRE>
int fl_show_colormap(int oldcol)
Fl_Color fl_show_colormap(Fl_Color oldcol)
</PRE></UL>
<H3>Description</H3>

View File

@ -1,5 +1,5 @@
//
// "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.2 2002/08/09 03:17:30 easysw Exp $"
// "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.3 2002/11/15 02:06:57 easysw Exp $"
//
// Colormap color selection dialog for the Fast Light Tool Kit (FLTK).
//
@ -136,8 +136,8 @@ Fl_Color ColorMenu::run() {
position(Fl::event_x_root()-(initial%8)*BOXSIZE-BOXSIZE/2-BORDER,
Fl::event_y_root()-(initial/8)*BOXSIZE-BOXSIZE/2-BORDER);
}
Fl::grab(*this);
show();
Fl::grab(*this);
done = 0;
while (!done) Fl::wait();
Fl::release();
@ -150,5 +150,5 @@ Fl_Color fl_show_colormap(Fl_Color oldcol) {
}
//
// End of "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.2 2002/08/09 03:17:30 easysw Exp $".
// End of "$Id: fl_show_colormap.cxx,v 1.5.2.4.2.3 2002/11/15 02:06:57 easysw Exp $".
//