size optimization

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4483 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-01-14 16:03:53 +00:00
parent 8be4c6a45d
commit d96ca6b2f7

View file

@ -1084,8 +1084,6 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item
item.hItem = items[i];
item.mask = TVIF_STATE;
item.state = (flags & SF_BOLD) << 1; // (SF_BOLD << 1) == 16 == TVIS_BOLD
item.state |= flags & SF_EXPAND; // TVIS_EXPANDED == SF_EXPAND
if (flags & SF_NAMECHG)
{
@ -1104,6 +1102,8 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item
if (flags & SF_RO) state += 3;
}
item.state = (flags & SF_BOLD) << 1; // (SF_BOLD << 1) == 16 == TVIS_BOLD
item.state |= flags & SF_EXPAND; // TVIS_EXPANDED == SF_EXPAND
item.state |= INDEXTOSTATEIMAGEMASK(state);
// TVE_COLLAPSE = 1, TVE_EXPAND = 2