summaryrefslogtreecommitdiff
path: root/src/dyetool
diff options
context:
space:
mode:
Diffstat (limited to 'src/dyetool')
-rw-r--r--src/dyetool/dyemain.cpp5
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;
}