解决带透明度的图像文件不能正确加载的问题
This commit is contained in:
parent
96457219d0
commit
6081a5c6c0
|
@ -4752,7 +4752,7 @@ void HGAPI HGImgThumb::ThreadFunc(HGThread thread, HGPointer param)
|
||||||
if (!fileName.isEmpty())
|
if (!fileName.isEmpty())
|
||||||
{
|
{
|
||||||
HGImage image = nullptr;
|
HGImage image = nullptr;
|
||||||
HGImgFmt_LoadImage(getStdString(fileName).c_str(), 0, nullptr, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_TOP, &image);
|
HGImgFmt_LoadImage(getStdString(fileName).c_str(), 0, nullptr, 0, HGBASE_IMGORIGIN_TOP, &image);
|
||||||
if (nullptr != image)
|
if (nullptr != image)
|
||||||
{
|
{
|
||||||
HGBase_EnterLock(p->m_lockItemSize);
|
HGBase_EnterLock(p->m_lockItemSize);
|
||||||
|
|
Loading…
Reference in New Issue