CtrlLib: Tuning FileSel icons...

git-svn-id: svn://ultimatepp.org/upp/trunk@2893 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-12-06 19:54:55 +00:00
parent b9bf8df0f8
commit c9fe843c3f

View file

@ -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++;
}
}