From 5e2f2d6c514d179ff1937d157cf8ba239dd07ae7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 8 Dec 1998 21:06:54 +0000 Subject: Mandelbrot demo fix from Bill - was crashing when the Julia set was opened. git-svn-id: file:///fltk/svn/fltk/trunk@153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/mandelbrot.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mandelbrot.cxx b/test/mandelbrot.cxx index 96f52400e..ae13b2bf0 100644 --- a/test/mandelbrot.cxx +++ b/test/mandelbrot.cxx @@ -1,5 +1,5 @@ // -// "$Id: mandelbrot.cxx,v 1.5 1998/12/06 15:57:04 mike Exp $" +// "$Id: mandelbrot.cxx,v 1.6 1998/12/08 21:06:54 mike Exp $" // // Mandelbrot set demo for the Fast Light Tool Kit (FLTK). // @@ -69,7 +69,7 @@ void Drawing_Area::draw() { } int Drawing_Area::idle() { - if (!window()->visible()) return 0; + if (!window()->shown() || !window()->visible()) return 0; if (drawn < nextline) { window()->make_current(); int yy = drawn+y()+4; @@ -197,5 +197,5 @@ void Drawing_Area::resize(int X,int Y,int W,int H) { } // -// End of "$Id: mandelbrot.cxx,v 1.5 1998/12/06 15:57:04 mike Exp $". +// End of "$Id: mandelbrot.cxx,v 1.6 1998/12/08 21:06:54 mike Exp $". // -- cgit v1.2.3