Skip to content

Commit 4d9a3cc

Browse files
author
Miroslav Bendík
committed
Added windows support.
1 parent e5cafeb commit 4d9a3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TileGenerator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ std::map<int, TileGenerator::BlockList> TileGenerator::getBlocksOnZ(int zPos, sq
635635
void TileGenerator::writeImage(const std::string &output)
636636
{
637637
FILE *out;
638-
out = fopen(output.c_str(), "w");
638+
out = fopen(output.c_str(), "wb");
639639
gdImagePng(m_image, out);
640640
fclose(out);
641641
gdImageDestroy(m_image);

0 commit comments

Comments
 (0)