summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralitor <me4all@mail.ru>2017-09-12 21:33:42 +0200
committeralitor <me4all@mail.ru>2017-09-12 21:33:42 +0200
commitbffce5c4a66f3ffbbcb114ade70d473c029728fd (patch)
tree99c0735f8fe4b01cf85ffcbf346fd0de5fd92b41
parentef995bb7690e65fdd299886e86899513a940f7e6 (diff)
Issue with the smileys with 0 delay not animated (#925)
-rw-r--r--plugins/SmileyAdd/src/imagecache.cpp3
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)