diff options
author | George Hazan <george.hazan@gmail.com> | 2016-03-01 16:45:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-03-01 16:45:43 +0000 |
commit | d5675b1834031fd7c99baa6d948fb550594fcd3a (patch) | |
tree | 1977ac3eb1162f8db55c2a7d74981cca39187a83 /plugins/SmileyAdd/src/imagecache.cpp | |
parent | 88167d8a0f7f0e3b8fbad7c8204732995bd265be (diff) |
- smileys rewritten to support true frame delays;
- code cleaning;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16383 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/imagecache.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/imagecache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SmileyAdd/src/imagecache.cpp b/plugins/SmileyAdd/src/imagecache.cpp index 567a1b4d4f..c90d355e5f 100644 --- a/plugins/SmileyAdd/src/imagecache.cpp +++ b/plugins/SmileyAdd/src/imagecache.cpp @@ -38,12 +38,12 @@ static void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD) lastdllname.Empty();
}
- for (int i=g_imagecache.getCount()-1; i >= 0; i--)
+ for (int i = g_imagecache.getCount() - 1; i >= 0; i--)
g_imagecache[i].ProcessTimerTick(ts);
if (g_imagecache.getCount() == 0) {
g_imagecache.destroy();
- if (timerId && (timerId+1) && lastmodule == NULL) {
+ if (timerId && (timerId + 1) && lastmodule == NULL) {
KillTimer(NULL, timerId);
timerId = 0;
}
@@ -383,7 +383,7 @@ void ImageType::DrawInternal(HDC hdc, int x, int y, int sizeX, int sizeY) ReleaseMutex(g_hMutexIm);
}
-int ImageType::GetFrameDelay(void) const
+int ImageType::GetFrameDelay(void) const
{
return ((long*)m_pPropertyItem->value)[m_nCurrentFrame];
}
@@ -543,7 +543,7 @@ ImageBase* AddCacheImage(const CMString& file, int index) if (ind == -1)
return NULL;
- CMString ext = file.Mid(ind+1);
+ CMString ext = file.Mid(ind + 1);
ext.MakeLower();
if (ext == _T("dll") || ext == _T("exe"))
img = opt.HQScaling ? (ImageBase*)new ImageType(id, file, index, icoDll) : (ImageBase*)new IconType(id, file, index, icoDll);
|