Add necessary initialisation in test/mandelbrot

Detected by valgrind :
==16102== Conditional jump or move depends on uninitialised value(s)
==16102==    at 0x449A10: Drawing_Area::idle() (mandelbrot.cxx:143)
This commit is contained in:
ManoloFLTK 2023-01-14 20:07:30 +01:00
parent b5f9d6f38e
commit c76285d457
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public:
scale = 4.0;
iterations = 1<<DEFAULT_ITERATIONS;
brightness = use_colors ? DEFAULT_BRIGHTNESS_COLOR : DEFAULT_BRIGHTNESS;
sx = sy = sw = sh = 0;
}
int idle();
};