mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.cosmetics
This commit is contained in:
parent
c4d2e52a83
commit
b4924d9d57
2 changed files with 0 additions and 32 deletions
|
|
@ -688,7 +688,6 @@ private:
|
|||
void CtrlPaint(SystemDraw& w, const Rect& clip);
|
||||
void RemoveFullRefresh();
|
||||
static void FullRefreshCleanup();
|
||||
void GatherTransparentAreas(Vector<Rect>& area, SystemDraw& w, Rect r, const Rect& clip);
|
||||
void ExcludeDHCtrls(SystemDraw& w, const Rect& r, const Rect& clip);
|
||||
void UpdateArea0(SystemDraw& draw, const Rect& clip, int backpaint);
|
||||
void UpdateArea(SystemDraw& draw, const Rect& clip);
|
||||
|
|
|
|||
|
|
@ -389,37 +389,6 @@ void CombineArea(Vector<Rect>& area, const Rect& r)
|
|||
area.Add(r);
|
||||
}
|
||||
|
||||
void Ctrl::GatherTransparentAreas(Vector<Rect>& area, SystemDraw& w, Rect r, const Rect& clip)
|
||||
{
|
||||
GuiLock __;
|
||||
LTIMING("GatherTransparentAreas");
|
||||
Point off = r.TopLeft();
|
||||
Point viewpos = off + GetView().TopLeft();
|
||||
r.Inflate(overpaint);
|
||||
Rect notr = GetVoidRect();
|
||||
if(notr.IsEmpty())
|
||||
notr = GetOpaqueRect();
|
||||
notr += viewpos;
|
||||
if(!IsShown() || r.IsEmpty() || !clip.Intersects(r) || !w.IsPainting(r))
|
||||
return;
|
||||
if(notr.IsEmpty())
|
||||
CombineArea(area, r & clip);
|
||||
else {
|
||||
if(notr != r) {
|
||||
CombineArea(area, clip & Rect(r.left, r.top, notr.left, r.bottom));
|
||||
CombineArea(area, clip & Rect(notr.right, r.top, r.right, r.bottom));
|
||||
CombineArea(area, clip & Rect(notr.left, r.top, notr.right, notr.top));
|
||||
CombineArea(area, clip & Rect(notr.left, notr.bottom, notr.right, r.bottom));
|
||||
}
|
||||
for(Ctrl& q : *this) {
|
||||
Point qoff = q.InView() ? viewpos : off;
|
||||
Rect qr = q.GetRect() + qoff;
|
||||
if(clip.Intersects(qr))
|
||||
q.GatherTransparentAreas(area, w, qr, clip);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Ctrl::ExcludeDHCtrls(SystemDraw& w, const Rect& r, const Rect& clip)
|
||||
{
|
||||
GuiLock __;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue