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/graphics.h | |
parent | 8a8086d758d7618f3900df057ac840667e867d0c (diff) | |
download | mana-06221a4cb3f44e7532e185bc775c73741d32cbf2.tar.gz mana-06221a4cb3f44e7532e185bc775c73741d32cbf2.tar.bz2 mana-06221a4cb3f44e7532e185bc775c73741d32cbf2.tar.xz mana-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/graphics.h')
-rw-r--r-- | src/graphics.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index a0749795..18a3be51 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -120,6 +120,11 @@ class Graphics : public gcn::SDLGraphics { int getHeight(); /** + * takes a screenshot, and saves it as a png + */ + bool saveScreenshot(); + + /** * takes a screenshot and returns it as SDL surface */ virtual SDL_Surface* getScreenshot(); @@ -127,6 +132,8 @@ class Graphics : public gcn::SDLGraphics { protected: SDL_Surface *mScreen; bool mFullscreen, mHWAccel; + private: + int screenshotsCount; }; #endif |