mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
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:
parent
4616bc2463
commit
c50b91be05
2 changed files with 401 additions and 402 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue