1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Merge pull request #2823 from janisozaur/libpng

Fix for libpng
This commit is contained in:
Ted John
2016-01-27 08:27:53 +00:00

View File

@@ -142,7 +142,7 @@ bool image_io_png_write(const rct_drawpixelinfo *dpi, const rct_palette *palette
// Write pixels
uint8 *bits = dpi->bits;
for (int y = 0; y < dpi->height; y++) {
png_write_row(png_ptr, (png_const_bytep)bits);
png_write_row(png_ptr, (png_byte *)bits);
bits += stride;
}