Nothing special. Just some cleanup to the update code. There is still a problem with layers not being properly updated sometimes when you move windows arround. The same problem occurs a lot more often when resizing windows. I'm traking it... :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12259 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2005-04-05 20:03:07 +00:00
parent d73bf8eb9f
commit 0cb3fdda93
5 changed files with 77 additions and 90 deletions
+3 -2
View File
@@ -83,9 +83,10 @@ WinBorder::WinBorder(const BRect &r, const char *name, const int32 look, const i
{
// unlike BViews, windows start off as hidden
fHidden = true;
fInUpdate = false;
fServerWin = win;
fClassID = AS_WINBORDER_CLASS;
cnt = 0;
fMouseButtons = 0;
fKeyModifiers = 0;
fDecorator = NULL;
@@ -311,7 +312,7 @@ void WinBorder::Draw(const BRect &r)
fDecorator->SetFocus(true);
else
fDecorator->SetFocus(false);
fDecorator->Draw(fUpdateReg.Frame());
fDecorator->Draw(r);
}
}