diff options
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; } |