From bffce5c4a66f3ffbbcb114ade70d473c029728fd Mon Sep 17 00:00:00 2001 From: alitor Date: Tue, 12 Sep 2017 21:33:42 +0200 Subject: Issue with the smileys with 0 delay not animated (#925) --- plugins/SmileyAdd/src/imagecache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') 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) -- cgit v1.2.3