From 4d9a3cc5d926bacc5d54914e0ba1c5f74e2cdd68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bend=C3=ADk?= Date: Tue, 28 Aug 2012 11:27:51 +0200 Subject: [PATCH] Added windows support. --- TileGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index 1d933d0..988a5a2 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -635,7 +635,7 @@ std::map 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);