> >> + buffer = new U32[(int)(1.02* (size+3)/4)]; // some extra memory > >> needed when printing > > > > Hmm, I don't know why there is the need for more memory, but > > looking at the code and the intention of proper rounding, shouldn't > > this be: > > > > > + buffer = new U32[(int)(((1.02*size)+3)/4)]; // some extra memory > > needed when printing > > Well, reading this again, this would probably be better (correct): > > buffer = new U32[((int)(1.02*size)+3)/4]; > > Manolo ? > > Albrecht
This is an obscure point. The mandelbrot demo was crashing under MSWindows when ctrl-P is pressed to print the main window. A debug investigation showed me that the crash is in the StretchDIBits call, and that there is no crash if some extra memory is allowed for the image data processed by StretchDIBits. But this is purely heuristic, and I'd like to understand better this crash. I will try to find what source change exactly brought the crash, because I believe mandelbrot did print without error some time ago. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
