diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-19 14:26:30 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-19 14:26:30 +0000 |
| commit | 34caa8250d2d8ff8ed36bcb57629bea53aa74ab6 (patch) | |
| tree | 66bad5746d3d482d1e1261bd0c57f7bfa6dfbe03 /src | |
| parent | 45e7f3f99e04aa8761e202b778f103401f79f812 (diff) | |
Added fix from Tom Holroyd to call fl_elapsed() in Fl::add_timeout().
git-svn-id: file:///fltk/svn/fltk/trunk@302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 01c625b7a..e38946048 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.17 1999/01/29 16:56:47 carl Exp $" +// "$Id: Fl.cxx,v 1.18 1999/02/19 14:26:30 mike Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -48,6 +48,7 @@ int Fl::damage_, char *Fl::e_text = ""; int Fl::e_length; +static double fl_elapsed(); // // 'Fl:event_inside()' - Return whether or not the mouse event is inside @@ -88,6 +89,8 @@ void Fl::add_timeout(double t, void (*cb)(void *), void *v) { timeout[i].time = t; timeout[i].cb = cb; timeout[i].arg = v; + + fl_elapsed(); } void Fl::remove_timeout(void (*cb)(void *), void *v) { @@ -675,5 +678,5 @@ int fl_old_shortcut(const char* s) { } // -// End of "$Id: Fl.cxx,v 1.17 1999/01/29 16:56:47 carl Exp $". +// End of "$Id: Fl.cxx,v 1.18 1999/02/19 14:26:30 mike Exp $". // |
