diff options
author | alitor <me4all@mail.ru> | 2017-09-12 21:33:42 +0200 |
---|---|---|
committer | alitor <me4all@mail.ru> | 2017-09-12 21:33:42 +0200 |
commit | bffce5c4a66f3ffbbcb114ade70d473c029728fd (patch) | |
tree | 99c0735f8fe4b01cf85ffcbf346fd0de5fd92b41 /plugins/SmileyAdd | |
parent | ef995bb7690e65fdd299886e86899513a940f7e6 (diff) |
Issue with the smileys with 0 delay not animated (#925)
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r-- | plugins/SmileyAdd/src/imagecache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/imagecache.cpp b/plugins/SmileyAdd/src/imagecache.cpp index aa20f59a70..8f4ea9fe4c 100644 --- a/plugins/SmileyAdd/src/imagecache.cpp +++ b/plugins/SmileyAdd/src/imagecache.cpp @@ -382,7 +382,8 @@ void ImageType::DrawInternal(HDC hdc, int x, int y, int sizeX, int sizeY) int ImageType::GetFrameDelay(void) const
{
- return ((long*)m_pPropertyItem->value)[m_nCurrentFrame];
+ int Del = ((long*)m_pPropertyItem->value)[m_nCurrentFrame];
+ return (Del ? Del : 5);
}
HICON ImageType::GetIcon(void)
|