.IconDes cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@8211 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-02-26 10:55:32 +00:00
parent be73fc14d4
commit f2c807f56e

View file

@ -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)