解决带透明度的图像文件不能正确加载的问题

This commit is contained in:
luoliangyi 2024-06-14 10:17:39 +08:00
parent 96457219d0
commit 6081a5c6c0
1 changed files with 1 additions and 1 deletions

View File

@ -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);