summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-18 18:57:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-18 18:57:19 +0300
commite7537ca6033a13ff1d21aac4a61a49ef325684b6 (patch)
tree5495e120bbb8108677fcdcde1cbc77a2417fc5d3 /src/game.cpp
parent0f7c14085321a54ad8c442041d3a26f5dfed5fd1 (diff)
downloadmv-e7537ca6033a13ff1d21aac4a61a49ef325684b6.tar.gz
mv-e7537ca6033a13ff1d21aac4a61a49ef325684b6.tar.bz2
mv-e7537ca6033a13ff1d21aac4a61a49ef325684b6.tar.xz
mv-e7537ca6033a13ff1d21aac4a61a49ef325684b6.zip
Move imagewriter into utils directory and rename to pnglib.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
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");