summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mandelbrot.cxx6
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);}