mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.IconDes cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@8211 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
be73fc14d4
commit
f2c807f56e
1 changed files with 8 additions and 0 deletions
|
|
@ -221,6 +221,14 @@ struct CachedIconImage : public Display {
|
|||
Point p = r.CenterPos(m.GetSize());
|
||||
w.DrawImage(p.x, p.y, m);
|
||||
}
|
||||
virtual Size GetStdSize(const Value& q) const
|
||||
{
|
||||
Image m = q;
|
||||
if(IsNull(m))
|
||||
return Size(0, 0);
|
||||
Size isz = m.GetSize();
|
||||
return isz.cx < 200 && isz.cy < 200 ? isz : IconDesImg::LargeImage().GetSize();
|
||||
}
|
||||
};
|
||||
|
||||
void IconDes::SerializeSettings(Stream& s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue