mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: Tuning FileSel icons...
git-svn-id: svn://ultimatepp.org/upp/trunk@2893 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b9bf8df0f8
commit
c9fe843c3f
1 changed files with 13 additions and 10 deletions
|
|
@ -372,19 +372,22 @@ void LazyFileIcons::Do()
|
|||
return;
|
||||
}
|
||||
const FileList::File& f = list->Get(pos);
|
||||
int t0 = GetTickCount();
|
||||
String n = f.name;
|
||||
if(ToLower(GetFileExt(f.name)) == ".exe") {
|
||||
int t0 = GetTickCount();
|
||||
DDUMP(f.name);
|
||||
#ifdef PLATFORM_WIN32
|
||||
Image img = GetFileIcon(AppendFileName(dir, f.name), f.isdir, f.unixexe, false, quick);
|
||||
Image img = GetFileIcon(AppendFileName(dir, f.name), f.isdir, f.unixexe, false, quick);
|
||||
#else
|
||||
Image img = GetFileIcon(dir, f.name, f.isdir, f.unixexe, false);
|
||||
Image img = GetFileIcon(dir, f.name, f.isdir, f.unixexe, false);
|
||||
#endif
|
||||
WhenIcon(f.isdir, f.name, img);
|
||||
if(f.hidden)
|
||||
img = Contrast(img, 200);
|
||||
list->SetIcon(pos, img);
|
||||
if(GetTickCount() - t0 > 100 || GetTickCount() - start > 1500)
|
||||
return;
|
||||
WhenIcon(f.isdir, f.name, img);
|
||||
if(f.hidden)
|
||||
img = Contrast(img, 200);
|
||||
list->SetIcon(pos, img);
|
||||
DDUMP(GetTickCount() - t0);
|
||||
if(GetTickCount() - t0 > 500/* || GetTickCount() - start > 1500*/)
|
||||
return;
|
||||
}
|
||||
pos++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue