mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 23:13:53 +01:00
Added windows support.
This commit is contained in:
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)
|
void TileGenerator::writeImage(const std::string &output)
|
||||||
{
|
{
|
||||||
FILE *out;
|
FILE *out;
|
||||||
out = fopen(output.c_str(), "w");
|
out = fopen(output.c_str(), "wb");
|
||||||
gdImagePng(m_image, out);
|
gdImagePng(m_image, out);
|
||||||
fclose(out);
|
fclose(out);
|
||||||
gdImageDestroy(m_image);
|
gdImageDestroy(m_image);
|
||||||
|
Loading…
Reference in New Issue
Block a user