diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-08 13:41:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-08 13:41:31 +0000 |
commit | 29caf2ccc31bc009d25b577cfc1cfbd82163aa3b (patch) | |
tree | d4122345850eaf1c2bbf4fce285bc63b5ffd937d /plugins/Clist_nicer/src/clcpaint.cpp | |
parent | c4c02e49eddd09393cafb55513f5067b5810c1c9 (diff) |
major speedup of clist nicer+ cache
git-svn-id: http://svn.miranda-ng.org/main/trunk@3920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clcpaint.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clcpaint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_nicer/src/clcpaint.cpp b/plugins/Clist_nicer/src/clcpaint.cpp index 0fd6cc0921..730b7db3a0 100644 --- a/plugins/Clist_nicer/src/clcpaint.cpp +++ b/plugins/Clist_nicer/src/clcpaint.cpp @@ -453,10 +453,10 @@ void __inline PaintItem(HDC hdcMem, ClcGroup *group, ClcContact *contact, int in avatar_done = FALSE;
TExtraCache *cEntry;
- if (contact->extraCacheEntry >= 0 && contact->extraCacheEntry < cfg::nextCacheEntry)
- cEntry = &cfg::eCache[contact->extraCacheEntry];
+ if (contact->pExtra)
+ cEntry = contact->pExtra;
else
- cEntry = cfg::eCache;
+ cEntry = cfg::arCache[0];
if (dat->bisEmbedded)
goto set_bg_l;
|