Draw, CtrlCore: Chameleon sync optimized/fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@3829 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-09-06 12:05:28 +00:00
commit c50b91be05
2 changed files with 401 additions and 402 deletions

View file

@ -911,17 +911,15 @@ void Ctrl::ChSync()
if(skin)
(*skin)();
Csize.cx = Dsize.cx = 0;
Csizeinit();
ChFinish();
}
void Ctrl::SyncCh()
{
static Font prevfont;
Font std = GetStdFont();
if(prevfont != std || ChIsInvalidated()) {
if(ChIsInvalidated())
ChSync();
prevfont = std;
}
}
void Ctrl::Xmlize(XmlIO xml)