diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-18 18:57:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-18 18:57:19 +0300 |
commit | e7537ca6033a13ff1d21aac4a61a49ef325684b6 (patch) | |
tree | 5495e120bbb8108677fcdcde1cbc77a2417fc5d3 /src/game.cpp | |
parent | 0f7c14085321a54ad8c442041d3a26f5dfed5fd1 (diff) | |
download | plus-e7537ca6033a13ff1d21aac4a61a49ef325684b6.tar.gz plus-e7537ca6033a13ff1d21aac4a61a49ef325684b6.tar.bz2 plus-e7537ca6033a13ff1d21aac4a61a49ef325684b6.tar.xz plus-e7537ca6033a13ff1d21aac4a61a49ef325684b6.zip |
Move imagewriter into utils directory and rename to pnglib.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index ad819230b..e09e6c92f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -110,7 +110,6 @@ #include "particle/particleengine.h" #include "resources/delayedmanager.h" -#include "resources/imagewriter.h" #include "resources/mapreader.h" #include "resources/screenshothelper.h" @@ -125,6 +124,7 @@ #include "utils/delete2.h" #include "utils/foreach.h" #include "utils/gettext.h" +#include "utils/pnglib.h" #include "utils/sdlcheckutils.h" #include "utils/timer.h" @@ -606,7 +606,7 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot, } const std::string fileNameStr = filename.str(); - const bool success = ImageWriter::writePNG(screenshot, fileNameStr); + const bool success = PngLib::writePNG(screenshot, fileNameStr); #ifdef __native_client__ std::string nacScreenshotlDir = fileNameStr; cutFirst(nacScreenshotlDir, "/persistent"); |