From 3debd1554b39a6a2e790526fa02d56d1b81fda85 Mon Sep 17 00:00:00 2001 From: Duane Bailey Date: Sat, 17 Sep 2005 21:35:26 +0000 Subject: 2005-09-17 Duane Bailey * src/net/messagin.cpp, src/net/messageout.cpp, src/net/network.cpp: removed replaced MACOSX defines with big endian defines * src/graphics.cpp, src/graphics.h: added screenshot method * src/game.cpp: added code, so that when one presses 'alt-p' (for picture), it takes a screenshot and saves it to a png * src/Makefile.am, config.ac: added png library stuff --- src/graphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index 6bd32ec2..b45bc15c 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -119,6 +119,11 @@ class Graphics : public gcn::SDLGraphics { */ int getHeight(); + /** + * takes a screenshot, and saves it as a png + */ + bool saveScreenshot(char *filename, ...); + protected: SDL_Surface *mScreen; bool mFullscreen, mHWAccel; -- cgit v1.2.3-70-g09d2