diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-13 21:12:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-13 21:12:32 +0300 |
commit | e0bea9ae2681668da02870719fd2ec48678a15f3 (patch) | |
tree | 7c875632d71d91f14f4d731deebaa8c9d284d94d /src | |
parent | e405cb8b0520b87c5b1472c92e3d67d60f2b070f (diff) | |
download | plus-e0bea9ae2681668da02870719fd2ec48678a15f3.tar.gz plus-e0bea9ae2681668da02870719fd2ec48678a15f3.tar.bz2 plus-e0bea9ae2681668da02870719fd2ec48678a15f3.tar.xz plus-e0bea9ae2681668da02870719fd2ec48678a15f3.zip |
In dyecmd before saving images, convert it into default 32 bit format.
Diffstat (limited to 'src')
-rw-r--r-- | src/dyetool/dyemain.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index c11cdd162..0699ce1ff 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -95,6 +95,9 @@ int main(int argc, char **argv) printf("Error loading image\n"); return 1; } - ImageWriter::writePNG(image->getSDLSurface(), dst); + SDL_Surface *const surface = imageHelper->convertTo32Bit( + image->getSDLSurface()); + ImageWriter::writePNG(surface, dst); + SDL_FreeSurface(surface); return 0; } |