Fix for libpng

This commit is contained in:
Michał Janiszewski 2016-01-27 07:54:28 +01:00
parent cc40a8292c
commit 184dbe21c6
1 changed files with 1 additions and 1 deletions

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;
}