png: corrected a wrong premultiplied option.

this is a regresion bug by 886b6b365b
This commit is contained in:
Hermet Park 2024-03-08 15:43:13 +09:00 committed by Hermet Park
parent cea221e2d5
commit 78e6606b05
2 changed files with 1 additions and 4 deletions

View file

@ -47,9 +47,6 @@ void PngLoader::run(unsigned tid)
surface.h = height; surface.h = height;
surface.cs = ColorSpace::ABGR8888; surface.cs = ColorSpace::ABGR8888;
surface.channelSize = sizeof(uint32_t); surface.channelSize = sizeof(uint32_t);
if (state.info_png.color.colortype == LCT_RGBA) surface.premultiplied = false;
else surface.premultiplied = true;
} }

View file

@ -59,7 +59,7 @@ struct Surface
uint32_t w = 0, h = 0; uint32_t w = 0, h = 0;
ColorSpace cs = ColorSpace::Unsupported; ColorSpace cs = ColorSpace::Unsupported;
uint8_t channelSize = 0; uint8_t channelSize = 0;
bool premultiplied = 0; //Alpha-premultiplied bool premultiplied = false; //Alpha-premultiplied
Surface() Surface()
{ {