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
This commit is contained in:
parent
d3fb66b4dd
commit
5e2f2d6c51
@ -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 $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user