while (work_to_do) {
work_some();
Fl::check();
} else {
Fl::wait();
}
Suppose that a timeout sets the work_to_do flag, which is initially cleared.
Fl::wait() will wait for this timeout, return, then expire the timeout and wait for user input.
With the fix, it will work as expected.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
and second, we have (I thought) a check in the configure script for this
anyways...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
properly (needed to use AC_CHECK_FUNC and fixed uversion string).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Overlay on a single buffered Fl_Gl_Window is faked more accurately when
there is no overlay hardware.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
if desired.
Added Chrisophe Kalt's patch to let you create Fl_Pack.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
header file in the correct order, before anything written by an later
object in the fl file. It used to write the extern callback definitions
first, this would fail if they used a type that was in the header file.
This also simplified the (still messy) code by getting rid of the
write_declare() virtual function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
the documentation (this is so a search for fltk does not produce hundreds
of hits on the documentation).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
(the ??x sequences) by accident. It also should produce somewhat
shorter output by using only 1 or 2 digits in some \oct characters
and using string constant pasting ("") to shorten some sequences.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
/usr/X11/include/X11/icons).
Esc closes the modal window, not the window the cursor is in, if a modal
window is up.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Notice that if you worked around this bug by adjusting the x/y yourself
you will have to change your code.
In addition all events have the correct x/y when sent to the grab()
widget. And the code to do all this was simplified a lot.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Fluid writes "class foo;" to the header and c file without prepending
"extern" or "static". This patch also does this to "class foo bar;"
which is wrong...
Tabs draw very short labels.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Moved value_->hide() in Fl_Tabs::value() before show to avoid bug when
there is only 1 child (fix from Petr Vilim).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
PostScript and Windows ISOLatin1 encodings (and the X11 fonts which use
them...) Commented the code out for now...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Added changes to event documentation for FL_DRAG and FL_KEYBOARD.
Added WIN32 stuff to Cosmo/Optimizer example code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
and only clear the selection when it isn't one of the app's windows).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
fl_call_main() and WinMain are now only compiled in for non-GNU compilers
under WIN32 (not needed for Cygwin and friends).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
WM_DESTROYCLIPBOARD message from coming from our own
window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Drawing of scrollbars altered somewhat so that the box (if any) goes
around the buttons, this seems to match the design that other toolkits
use. Hope everybody likes this... This required internal changes
to the Fl_Slider and Fl_Value_Slider as well but they should draw
exactly the same.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
under BCC.
Fluid will output A::B::C names for nested classes.
Fl_Browser::lineposition(n, BOTTOM) will align the bottom of the line
rather than the top with the bottom of the browser.
The connect program does wait() so that it does not leave a zombie for
every one of your ppp connections.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
As a result, you had to wiggle the mouse in order for fds to be
polled on a regular basis.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
prevclock to valid value [now use GetClockTicks()], and
didn't check for newclock < prevclock (which would be
the case if no messages have been processed yet).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
in on April 8, but it seems to have disappeared from the CVS.
-Carl
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Fixed browser bug in item_width() - would read past the end of the string
under certain circumstances.
Fixed browser resize bug - wasn't updating bounding box during check, so
it could get in an infinite loop.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Function returns same class as the outermost widget.
Couldn't figure out how/whether to include files and
class forward declarations, though.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
They act like up/down arrows except they circulate around at the end.
Fixed a typo in fluid that made it not write when() correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121