mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-12 05:20:36 +02:00
Added windows support.
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user