mirror of
https://github.com/libretro/mgba.git
synced 2024-11-24 00:20:05 +00:00
Util: Fix regression with PNGs
This commit is contained in:
parent
b05cfe7764
commit
a691143777
@ -47,16 +47,19 @@ static png_infop _pngWriteHeader(png_structp png, unsigned width, unsigned heigh
|
||||
return 0;
|
||||
}
|
||||
png_set_IHDR(png, info, width, height, 8, type, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
|
||||
png_write_info(png, info);
|
||||
return info;
|
||||
}
|
||||
|
||||
png_infop PNGWriteHeader(png_structp png, unsigned width, unsigned height) {
|
||||
return _pngWriteHeader(png, width, height, PNG_COLOR_TYPE_RGB);
|
||||
png_infop info = _pngWriteHeader(png, width, height, PNG_COLOR_TYPE_RGB);
|
||||
png_write_info(png, info);
|
||||
return info;
|
||||
}
|
||||
|
||||
png_infop PNGWriteHeaderA(png_structp png, unsigned width, unsigned height) {
|
||||
return _pngWriteHeader(png, width, height, PNG_COLOR_TYPE_RGB_ALPHA);
|
||||
png_infop info = _pngWriteHeader(png, width, height, PNG_COLOR_TYPE_RGB_ALPHA);
|
||||
png_write_info(png, info);
|
||||
return info;
|
||||
}
|
||||
|
||||
png_infop PNGWriteHeader8(png_structp png, unsigned width, unsigned height) {
|
||||
|
Loading…
Reference in New Issue
Block a user