Set look and flags at the correct position.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-07-20 01:46:58 +00:00
parent 30c31ae28a
commit 604ae84e46
2 changed files with 5 additions and 4 deletions

View File

@ -99,8 +99,6 @@ Decorator::SetFlags(uint32 flags, BRegion* updateRegion)
if (flags & B_NOT_RESIZABLE)
flags |= B_NOT_H_RESIZABLE | B_NOT_V_RESIZABLE;
fFlags = flags;
fFootprintValid = false;
// the border might have changed (smaller/larger tab)
_SetFlags(flags, updateRegion);
@ -124,8 +122,6 @@ void
Decorator::SetLook(DesktopSettings& settings, window_look look,
BRegion* updateRect)
{
fLook = look;
fFootprintValid = false;
// the border very likely changed
_SetLook(settings, look, updateRect);
@ -628,12 +624,14 @@ void
Decorator::_SetLook(DesktopSettings& settings, window_look look,
BRegion* updateRect)
{
fLook = look;
}
void
Decorator::_SetFlags(uint32 flags, BRegion* updateRegion)
{
fFlags = flags;
}

View File

@ -790,6 +790,8 @@ DefaultDecorator::_SetLook(DesktopSettings& settings, window_look look,
if (updateRegion != NULL)
updateRegion->Include(&GetFootprint());
fLook = look;
_UpdateFont(settings);
_InvalidateBitmaps();
_DoLayout();
@ -808,6 +810,7 @@ DefaultDecorator::_SetFlags(uint32 flags, BRegion* updateRegion)
if (updateRegion != NULL)
updateRegion->Include(&GetFootprint());
fFlags = flags;
_DoLayout();
if (updateRegion != NULL)