* Renamed AS_LAYER_INVAL_{REGION|RECT} to *_INVALIDATE_*.

* Removed unused AS_LAYER_INVALIDATE.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15467 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-12-10 15:12:28 +00:00
parent 55eeaa58a6
commit fc70d6db87
3 changed files with 12 additions and 13 deletions

View File

@ -245,7 +245,6 @@ enum {
AS_LAYER_HIDE,
AS_LAYER_MOVE,
AS_LAYER_RESIZE,
AS_LAYER_INVALIDATE,
AS_LAYER_DRAW,
AS_LAYER_GET_TOKEN,
@ -302,8 +301,8 @@ enum {
AS_LAYER_END_PICTURE,
AS_LAYER_COPY_BITS,
AS_LAYER_DRAW_PICTURE,
AS_LAYER_INVAL_RECT,
AS_LAYER_INVAL_REGION,
AS_LAYER_INVALIDATE_RECT,
AS_LAYER_INVALIDATE_REGION,
AS_LAYER_INVERT_RECT,
AS_LAYER_MOVE_TO,
AS_LAYER_RESIZE_TO,

View File

@ -3214,7 +3214,7 @@ BView::Invalidate(BRect invalRect)
check_lock();
fOwner->fLink->StartMessage(AS_LAYER_INVAL_RECT);
fOwner->fLink->StartMessage(AS_LAYER_INVALIDATE_RECT);
fOwner->fLink->Attach<BRect>(invalRect);
fOwner->fLink->Flush();
}
@ -3231,7 +3231,7 @@ BView::Invalidate(const BRegion *invalRegion)
int32 count = 0;
count = const_cast<BRegion*>(invalRegion)->CountRects();
fOwner->fLink->StartMessage(AS_LAYER_INVAL_REGION);
fOwner->fLink->StartMessage(AS_LAYER_INVALIDATE_REGION);
fOwner->fLink->Attach<int32>(count);
for (int32 i = 0; i < count; i++)

View File

@ -1486,10 +1486,10 @@ ServerWindow::_DispatchViewMessage(int32 code,
break;
}
case AS_LAYER_INVAL_RECT:
case AS_LAYER_INVALIDATE_RECT:
{
DTRACE(("ServerWindow %s: Message AS_LAYER_INVAL_RECT: ViewLayer: %s\n", Title(), fCurrentLayer->Name()));
DTRACE(("ServerWindow %s: Message AS_LAYER_INVALIDATE_RECT: ViewLayer: %s\n", Title(), fCurrentLayer->Name()));
// NOTE: looks like this call is NOT affected by origin and scale on R5
// so this implementation is "correct"
BRect invalidRect;
@ -1499,18 +1499,18 @@ ServerWindow::_DispatchViewMessage(int32 code,
}
break;
}
case AS_LAYER_INVAL_REGION:
case AS_LAYER_INVALIDATE_REGION:
{
DTRACE(("ServerWindow %s: Message AS_LAYER_INVAL_RECT: ViewLayer: %s\n", Title(), fCurrentLayer->Name()));
DTRACE(("ServerWindow %s: Message AS_LAYER_INVALIDATE_RECT: ViewLayer: %s\n", Title(), fCurrentLayer->Name()));
// NOTE: looks like this call is NOT affected by origin and scale on R5
// so this implementation is "correct"
BRegion dirty;
int32 rectCount;
BRect rect;
link.Read<int32>(&rectCount);
for (int i = 0; i < rectCount; i++) {
link.Read<BRect>(&rect);
dirty.Include(rect);