* 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:
parent
55eeaa58a6
commit
fc70d6db87
@ -245,7 +245,6 @@ enum {
|
|||||||
AS_LAYER_HIDE,
|
AS_LAYER_HIDE,
|
||||||
AS_LAYER_MOVE,
|
AS_LAYER_MOVE,
|
||||||
AS_LAYER_RESIZE,
|
AS_LAYER_RESIZE,
|
||||||
AS_LAYER_INVALIDATE,
|
|
||||||
AS_LAYER_DRAW,
|
AS_LAYER_DRAW,
|
||||||
|
|
||||||
AS_LAYER_GET_TOKEN,
|
AS_LAYER_GET_TOKEN,
|
||||||
@ -302,8 +301,8 @@ enum {
|
|||||||
AS_LAYER_END_PICTURE,
|
AS_LAYER_END_PICTURE,
|
||||||
AS_LAYER_COPY_BITS,
|
AS_LAYER_COPY_BITS,
|
||||||
AS_LAYER_DRAW_PICTURE,
|
AS_LAYER_DRAW_PICTURE,
|
||||||
AS_LAYER_INVAL_RECT,
|
AS_LAYER_INVALIDATE_RECT,
|
||||||
AS_LAYER_INVAL_REGION,
|
AS_LAYER_INVALIDATE_REGION,
|
||||||
AS_LAYER_INVERT_RECT,
|
AS_LAYER_INVERT_RECT,
|
||||||
AS_LAYER_MOVE_TO,
|
AS_LAYER_MOVE_TO,
|
||||||
AS_LAYER_RESIZE_TO,
|
AS_LAYER_RESIZE_TO,
|
||||||
|
@ -3214,7 +3214,7 @@ BView::Invalidate(BRect invalRect)
|
|||||||
|
|
||||||
check_lock();
|
check_lock();
|
||||||
|
|
||||||
fOwner->fLink->StartMessage(AS_LAYER_INVAL_RECT);
|
fOwner->fLink->StartMessage(AS_LAYER_INVALIDATE_RECT);
|
||||||
fOwner->fLink->Attach<BRect>(invalRect);
|
fOwner->fLink->Attach<BRect>(invalRect);
|
||||||
fOwner->fLink->Flush();
|
fOwner->fLink->Flush();
|
||||||
}
|
}
|
||||||
@ -3231,7 +3231,7 @@ BView::Invalidate(const BRegion *invalRegion)
|
|||||||
int32 count = 0;
|
int32 count = 0;
|
||||||
count = const_cast<BRegion*>(invalRegion)->CountRects();
|
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);
|
fOwner->fLink->Attach<int32>(count);
|
||||||
|
|
||||||
for (int32 i = 0; i < count; i++)
|
for (int32 i = 0; i < count; i++)
|
||||||
|
@ -1486,10 +1486,10 @@ ServerWindow::_DispatchViewMessage(int32 code,
|
|||||||
break;
|
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
|
// NOTE: looks like this call is NOT affected by origin and scale on R5
|
||||||
// so this implementation is "correct"
|
// so this implementation is "correct"
|
||||||
BRect invalidRect;
|
BRect invalidRect;
|
||||||
@ -1499,18 +1499,18 @@ ServerWindow::_DispatchViewMessage(int32 code,
|
|||||||
}
|
}
|
||||||
break;
|
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
|
// NOTE: looks like this call is NOT affected by origin and scale on R5
|
||||||
// so this implementation is "correct"
|
// so this implementation is "correct"
|
||||||
BRegion dirty;
|
BRegion dirty;
|
||||||
int32 rectCount;
|
int32 rectCount;
|
||||||
BRect rect;
|
BRect rect;
|
||||||
|
|
||||||
link.Read<int32>(&rectCount);
|
link.Read<int32>(&rectCount);
|
||||||
|
|
||||||
for (int i = 0; i < rectCount; i++) {
|
for (int i = 0; i < rectCount; i++) {
|
||||||
link.Read<BRect>(&rect);
|
link.Read<BRect>(&rect);
|
||||||
dirty.Include(rect);
|
dirty.Include(rect);
|
||||||
|
Loading…
Reference in New Issue
Block a user