PNG: Bytes per pixel is always 4.

This commit is contained in:
Michael Drake 2022-03-24 11:12:57 +00:00
parent 7c3382834e
commit 1dd3c80d9b

View File

@ -170,7 +170,7 @@ static void info_callback(png_structp png_s, png_infop info)
}
png_c->rowstride = guit->bitmap->get_rowstride(png_c->bitmap);
png_c->bpp = guit->bitmap->get_bpp(png_c->bitmap);
png_c->bpp = sizeof(uint32_t);
nspng_setup_transforms(png_s, info);