1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

transform greyscale image to RGB when loaded

This commit is contained in:
Broxzier
2017-04-22 15:06:20 +02:00
committed by Michał Janiszewski
parent 52ef6c8e34
commit 058607b4e4

View File

@@ -69,7 +69,7 @@ namespace Imaging
png_set_sig_bytes(png_ptr, sig_read);
// To simplify the reading process, convert 4-16 bit data to 24-32 bit data
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND, nullptr);
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_GRAY_TO_RGB, nullptr);
// Read header
png_uint_32 pngWidth, pngHeight;