mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
png: corrected a wrong premultiplied option.
this is a regresion bug by 886b6b365b
This commit is contained in:
parent
cea221e2d5
commit
78e6606b05
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue