summaryrefslogtreecommitdiff
path: root/src/resources/imagewriter.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-20 20:50:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-20 20:50:50 +0300
commit4b19b15936faa8e1d5f331cc11147ccfc360bde7 (patch)
treee601b548c0c55a7e434b30cfff328ca5e3662bee /src/resources/imagewriter.cpp
parent042c4f09e34157522692d6f99f5c51bc04e8f27a (diff)
downloadplus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.gz
plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.bz2
plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.xz
plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.zip
improve a bit code speed.
Diffstat (limited to 'src/resources/imagewriter.cpp')
-rw-r--r--src/resources/imagewriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/imagewriter.cpp b/src/resources/imagewriter.cpp
index 9bdde319b..1db9f139d 100644
--- a/src/resources/imagewriter.cpp
+++ b/src/resources/imagewriter.cpp
@@ -84,12 +84,14 @@ bool ImageWriter::writePNG(SDL_Surface *const surface,
png_set_packing(png_ptr);
png_bytep *const row_pointers = new png_bytep[surface->h];
+/*
if (!row_pointers)
{
logger->log1("Had trouble converting surface to row pointers");
fclose(fp);
return false;
}
+*/
for (int i = 0; i < surface->h; i++)
{