Decorator-resize redrawing fixed.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8047 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2004-06-18 15:24:36 +00:00
parent 2ac69a4d66
commit ead47553f2
4 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -432,7 +432,8 @@ void Layer::RequestDraw(const BRegion &reg, Layer *startFrom)
if (fVisible.CountRects() > 0)
{
fUpdateReg = fVisible;
fUpdateReg.IntersectWith(&reg);
if (!(fFlags & B_FULL_UPDATE_ON_RESIZE))
fUpdateReg.IntersectWith(&reg);
if (fUpdateReg.CountRects() > 0){
fDriver->ConstrainClippingRegion(&fUpdateReg);
+1 -1
View File
@@ -182,7 +182,7 @@ ServerWindow::ServerWindow(BRect rect, const char *string, uint32 wlook,
void ServerWindow::Init(void)
{
fWinBorder = new WinBorder( fFrame, fTitle.String(), fLook, fFeel, fFlags,
fWinBorder = new WinBorder( fFrame, fTitle.String(), fLook, fFeel, 0UL,
this, desktop->GetDisplayDriver());
fWinBorder->RebuildFullRegion();
+2
View File
@@ -92,6 +92,7 @@ WinBorder::WinBorder(const BRect &r, const char *name, const int32 look, const i
fMainWinBorder = NULL;
fDecorator = NULL;
fAdFlags = fAdFlags | B_LAYER_CHILDREN_DEPENDANT;
fFlags = B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE;
fIsMoving = false;
fIsResizing = false;
@@ -341,6 +342,7 @@ void WinBorder::HighlightDecorator(const bool &active)
void WinBorder::Draw(const BRect &r)
{
STRACE(("WinBorder(%s)::Draw()\n", GetName()));
// if we have a visible region, it is decorator's one.
if(fDecorator)
{
-1
View File
@@ -81,7 +81,6 @@ protected:
friend class ServerWindow;
Decorator *fDecorator;
int32 fFlags;
int32 fMouseButtons;
int32 fKeyModifiers;
BPoint fLastMousePosition;