Screenshots (feature request #559626)
|Reported by:||eriktorbjorn||Owned by:||Kirben|
Looks like you can't attach files to feature requests so I'm submitting a patch instead. This is in regards to part of feature request #559626.
The screenshot feature should be trivial to add. At least for the SDL version, since there already is an SDL_SaveBMP() macro available. Admittedly, BMP isn't the sexiest image format around, but I didn't want to add dependencies on other libraries.
With this patch, you should be able to use Alt-S to make a screenshot.
It's still a bit rough. For instance, it always saves the screenshots to the current directory, and it doesn't hide the mouse cursor before the screenshot is made. (That first item could be partially adressed by patch #587694, by the way, since that puts the code to figure out save directory in a separate function.)
Of course, similar code would have to be added to the other versions.
The patch is made against an August 1 CVS snapshot.
Ticket imported from: #590233. Ticket imported from: patches/101.