summaryrefslogtreecommitdiffstats
path: root/src/MinedMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MinedMap.cpp')
-rw-r--r--src/MinedMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MinedMap.cpp b/src/MinedMap.cpp
index 3af634d..371e009 100644
--- a/src/MinedMap.cpp
+++ b/src/MinedMap.cpp
@@ -75,8 +75,8 @@ static void writePNG(const char *filename, const uint32_t data[DIM][DIM]) {
png_init_io(png_ptr, f);
- png_set_IHDR(png_ptr, info_ptr, World::Region::SIZE*World::Chunk::SIZE, World::Region::SIZE*World::Chunk::SIZE,
- 8, PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
+ png_set_IHDR(png_ptr, info_ptr, DIM, DIM, 8, PNG_COLOR_TYPE_RGB_ALPHA,
+ PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
uint8_t *row_pointers[World::Region::SIZE*World::Chunk::SIZE];
for (size_t i = 0; i < World::Region::SIZE*World::Chunk::SIZE; i++)