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:
parent
8be4c6a45d
commit
d96ca6b2f7
1 changed files with 2 additions and 2 deletions
|
@ -1084,8 +1084,6 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item
|
||||||
item.hItem = items[i];
|
item.hItem = items[i];
|
||||||
|
|
||||||
item.mask = TVIF_STATE;
|
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)
|
if (flags & SF_NAMECHG)
|
||||||
{
|
{
|
||||||
|
@ -1104,6 +1102,8 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item
|
||||||
if (flags & SF_RO) state += 3;
|
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);
|
item.state |= INDEXTOSTATEIMAGEMASK(state);
|
||||||
|
|
||||||
// TVE_COLLAPSE = 1, TVE_EXPAND = 2
|
// TVE_COLLAPSE = 1, TVE_EXPAND = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue