Rodrigo Morante wrote: > Albrecht, Alvin, Ian: > > I recoded a bit, in particular I derived a class from > Fl_Double_Window. Now the area of the main window which is covered by > the Fl_File_Chooser when starting to save is dumped as a black region. > If the Fl_File_Chooser doesn't cover at all the window the dump is Ok. > Using fl_begin_offscreen()/fl_end_offscreen() does not alter the > result. I guess that a really quick-and-dirty solution would be to add > a time delay before reading. The code follows.
(code elided) I used your posted code unchanged under Windows (compiled with Cygwin/gcc), and it works and dumps the entire window in two pnm's (one chosen in the file chooser, and "fig.pnm" when closing the window), no matter if a part of the the window is covered by the file chooser or not. This is true for FLTK 1.1 and FLTK 1.3 (current svn versions). I didn't find the time to test on Ubuntu though. Can you please tell us if you can still see the problem on all your platforms (you wrote about Windows and Ubuntu), or if this is platform dependent? If yes, then I might try to reproduce this on Linux (Ubuntu) as well. I don't remember that anything related has changed between FLTK 1.1.9 and the current svn version(s), but can you also try the svn version or latest FLTK 1.3 snapshot and tell us what happens with this? Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

