README: minor usage example fix [skip-ci]

thanks to @nedelec for pointing it out
This commit is contained in:
Randy 2022-04-21 23:00:00 +02:00
parent 82b0c5107d
commit 3c640a075d

View File

@ -77,8 +77,8 @@ spng_set_option(enc, SPNG_ENCODE_TO_BUFFER, 1);
/* Specify image dimensions, PNG format */
struct spng_ihdr ihdr =
{
.height = height,
.width = width,
.height = height,
.bit_depth = 8,
.color_type = SPNG_COLOR_TYPE_TRUECOLOR_ALPHA
};