diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-09-18 01:31:33 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-09-18 01:31:33 +0000 |
commit | 06221a4cb3f44e7532e185bc775c73741d32cbf2 (patch) | |
tree | 4258a21d641e6810173f6c936db8d34d9e109313 /src/resources/imagewriter.h | |
parent | 8a8086d758d7618f3900df057ac840667e867d0c (diff) | |
download | mana-client-06221a4cb3f44e7532e185bc775c73741d32cbf2.tar.gz mana-client-06221a4cb3f44e7532e185bc775c73741d32cbf2.tar.bz2 mana-client-06221a4cb3f44e7532e185bc775c73741d32cbf2.tar.xz mana-client-06221a4cb3f44e7532e185bc775c73741d32cbf2.zip |
Made the saveScreenShot makes its screenshots under user home dir in *nices, made it more C++ way to avoid a leak, and made it check for existence of a file with same name before writing; In that case the screenshot's number is incremented until it finds an adequate name.
Diffstat (limited to 'src/resources/imagewriter.h')
-rw-r--r-- | src/resources/imagewriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/imagewriter.h b/src/resources/imagewriter.h index edda723f..205e4584 100644 --- a/src/resources/imagewriter.h +++ b/src/resources/imagewriter.h @@ -28,6 +28,6 @@ struct SDL_Surface; class ImageWriter { public: - static void writePNG(SDL_Surface *surface, + static bool writePNG(SDL_Surface *surface, const std::string &filename); }; |