On 13 Aug 2009, at 21:03, Brian wrote: > I haven't got a working Linux setup at the moment, but I compiled > your code
I thought you had a laptop set up for dual-boot? > using FLTK 1.1.9 and the following command > fltk-config --compile pnmtest.cxx > > under Windows Vista using MSys/MinGW (gcc 3.4.5) > and it works fine. FWIW, just tried it on this OSX system, and that also appears to work as expected, and does not trigger any errors. Got the same image by hitting the button as I got by exiting the program. Seems to be OK. One thing that might be relevant is that both OSX and Vista have buffered displays, whereas X windows and older win32 system probably do not, so I wonder if the image data is going out of scope or something... But on these systems the data is still available and so it appears to work? Anyway, if it were me, I'd construct the image in an offscreen (see the docs for fl_offscreen) and save that instead, as saving the actual display contents is frequently fraught with difficulties - e.g. mouse cursors or overlapping windows or etc getting mapped into the capture (because not all graphics drivers manage the screen memory in the same way, so what works fine on one system may not work so well in another...) There have been a few threads about offscreens and such recently, over the last few months, including worked examples, so a trawl through the archives ought to find something you can use. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

