Skip to content

Commit

Permalink
Merge pull request duilib#65 from wgy0323/master
Browse files Browse the repository at this point in the history
Update UIGifAnim.cpp 修改控件支持显示普通图片
  • Loading branch information
wangchyz committed Feb 19, 2016
2 parents 6fb2758 + f92bbc1 commit 04377ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DuiLib/Control/UIGifAnim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ namespace DuiLib
SetFixedWidth(m_pGifImage->GetWidth());
SetFixedHeight(m_pGifImage->GetHeight());
}
if (m_bIsAutoPlay)
if (m_bIsAutoPlay && nSize > 0)
{
PlayGif();
}
Expand Down Expand Up @@ -313,7 +313,7 @@ namespace DuiLib

while (!pData)
{
//读不到图片, 则直接去读取bitmap.m_lpstr指向的路径
//读不到图片, 则直接去读取bitmap.m_lpstr指向的路径
HANDLE hFile = ::CreateFile(pstrGifPath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, \
FILE_ATTRIBUTE_NORMAL, NULL);
if( hFile == INVALID_HANDLE_VALUE ) break;
Expand Down Expand Up @@ -361,4 +361,4 @@ namespace DuiLib
}


}
}

0 comments on commit 04377ab

Please sign in to comment.