summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 21:19:19 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 21:19:19 +0000
commitf32ecc47bab3712e422bc12a8933612956651d9b (patch)
tree6927ca82cac1ea5593d80b58f4b2baf8e43387f3
parent08303a1bfda96aaa9f28af0dae9ac8ffcd439fe7 (diff)
fl_elapsed() needs to be called before fl_timeout[] is initialized.
git-svn-id: file:///fltk/svn/fltk/trunk@319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index e38946048..766f0bbc4 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl.cxx,v 1.18 1999/02/19 14:26:30 mike Exp $"
+// "$Id: Fl.cxx,v 1.19 1999/02/22 21:19:19 mike Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -86,11 +86,12 @@ void Fl::add_timeout(double t, void (*cb)(void *), void *v) {
break;
}
}
+
+ fl_elapsed();
+
timeout[i].time = t;
timeout[i].cb = cb;
timeout[i].arg = v;
-
- fl_elapsed();
}
void Fl::remove_timeout(void (*cb)(void *), void *v) {
@@ -678,5 +679,5 @@ int fl_old_shortcut(const char* s) {
}
//
-// End of "$Id: Fl.cxx,v 1.18 1999/02/19 14:26:30 mike Exp $".
+// End of "$Id: Fl.cxx,v 1.19 1999/02/22 21:19:19 mike Exp $".
//