summaryrefslogtreecommitdiff
path: root/src/progs
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/progs
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/progs')
-rw-r--r--src/progs/dyecmd/dyemain.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/progs/dyecmd/dyemain.cpp b/src/progs/dyecmd/dyemain.cpp
index 234e4a600..a5e8a2a34 100644
--- a/src/progs/dyecmd/dyemain.cpp
+++ b/src/progs/dyecmd/dyemain.cpp
@@ -26,8 +26,6 @@
#include "fs/virtfs/fs.h"
-#include "resources/imagewriter.h"
-
#include "resources/image/image.h"
#ifdef USE_SDL2
@@ -37,6 +35,7 @@
#include "resources/loaders/imageloader.h"
#include "utils/gettext.h"
+#include "utils/pnglib.h"
#include "utils/sdlhelper.h"
#include <iostream>
@@ -114,7 +113,7 @@ int main(int argc, char **argv)
}
SDL_Surface *const surface = ImageHelper::convertTo32Bit(
image->getSDLSurface());
- ImageWriter::writePNG(surface, dst);
+ PngLib::writePNG(surface, dst);
SDL_FreeSurface(surface);
VirtFs::deinit();
return 0;