Skip to content

Commit

Permalink
fl_elapsed() needs to be called before fl_timeout[] is initialized.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/trunk@319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Feb 22, 1999
1 parent 08303a1 commit f32ecc4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 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).
//
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 $".
//

0 comments on commit f32ecc4

Please sign in to comment.