summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-12-08 21:06:54 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-12-08 21:06:54 +0000
commit5e2f2d6c514d179ff1937d157cf8ba239dd07ae7 (patch)
tree5f30cb4e6367c24639b69e18f9b94a8097015128 /test
parentd3fb66b4dd23d21de81a5419dd74dd29a0ecdf32 (diff)
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
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 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 $".
//