diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-10-19 20:15:32 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-10-19 20:15:32 +0000 |
| commit | 0490b303831869c12c84d61025aab1bf2d1f1414 (patch) | |
| tree | 8d8da068d0c54a3e1bf333eb6e281ca3f0117e97 /test/mandelbrot.cxx | |
| parent | f3180baff0cf3958e4eef70a634def5d46ec2244 (diff) | |
Fixed adding an idle handler during a draw() call (STR #1950)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/mandelbrot.cxx')
| -rw-r--r-- | test/mandelbrot.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mandelbrot.cxx b/test/mandelbrot.cxx index 1bc6293a0..358d91b6a 100644 --- a/test/mandelbrot.cxx +++ b/test/mandelbrot.cxx @@ -33,12 +33,12 @@ Drawing_Window mbrot; Drawing_Window jbrot; -void idle() { - if (!mbrot.d->idle() && !(jbrot.d && jbrot.d->idle())) Fl::set_idle(0); +void idle(void*) { + if (!mbrot.d->idle() && !(jbrot.d && jbrot.d->idle())) Fl::remove_idle(idle); } void set_idle() { - Fl::set_idle(idle); + Fl::add_idle(idle); } static void window_callback(Fl_Widget*, void*) {exit(0);} |
