Added windows support.

This commit is contained in:
Miroslav Bendík 2012-08-28 11:27:51 +02:00
parent e5cafeb8b8
commit 4d9a3cc5d9

@ -635,7 +635,7 @@ std::map<int, TileGenerator::BlockList> TileGenerator::getBlocksOnZ(int zPos, sq
void TileGenerator::writeImage(const std::string &output)
{
FILE *out;
out = fopen(output.c_str(), "w");
out = fopen(output.c_str(), "wb");
gdImagePng(m_image, out);
fclose(out);
gdImageDestroy(m_image);