mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
Draw: MakeImage templated version, MakeImage(Image, fn) renamed as AdjustImage
This commit is contained in:
parent
3fa50d27f1
commit
49d81333f2
10 changed files with 44 additions and 47 deletions
|
|
@ -239,8 +239,8 @@ FileList::File DirDiffDlg::MakeFile(int i)
|
|||
int k = list[i].d;
|
||||
if(IsNull(icn))
|
||||
icn = CtrlImg::File();
|
||||
m.icon = decode(k, FAILED_FILE, MakeImage(icn, [] (const Image& m) { return GetOver(m, DiffImg::Failed()); }),
|
||||
PATCHED_FILE, MakeImage(icn, [] (const Image& m) { return GetOver(m, DiffImg::Patched()); }),
|
||||
m.icon = decode(k, FAILED_FILE, AdjustImage(icn, [](const Image& m) { return GetOver(m, DiffImg::Failed()); }),
|
||||
PATCHED_FILE, AdjustImage(icn, [](const Image& m) { return GetOver(m, DiffImg::Patched()); }),
|
||||
icn);
|
||||
m.name = list[i].a;
|
||||
m.font = decode(k, FAILED_FILE, StdFont().Strikeout().Italic(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue