From d96ca6b2f736556854c6b1807cdd1e2a1789b57f Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 14 Jan 2006 16:03:53 +0000 Subject: [PATCH] size optimization git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4483 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 67b816e7..42128659 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -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