app_server: fix clearing user clipping from BPicture
* Clipping was set to an empty region instead of being cleared when inside a BPicture
This commit is contained in:
@@ -538,10 +538,14 @@ set_clipping_rects(Canvas* canvas, const BRect* rects,
|
|||||||
{
|
{
|
||||||
// TODO: This might be too slow, we should copy the rects
|
// TODO: This might be too slow, we should copy the rects
|
||||||
// directly to BRegion's internal data
|
// directly to BRegion's internal data
|
||||||
BRegion region;
|
if (numRects == 0)
|
||||||
for (uint32 c = 0; c < numRects; c++)
|
canvas->SetUserClipping(NULL);
|
||||||
region.Include(rects[c]);
|
else {
|
||||||
canvas->SetUserClipping(®ion);
|
BRegion region;
|
||||||
|
for (uint32 c = 0; c < numRects; c++)
|
||||||
|
region.Include(rects[c]);
|
||||||
|
canvas->SetUserClipping(®ion);
|
||||||
|
}
|
||||||
canvas->UpdateCurrentDrawingRegion();
|
canvas->UpdateCurrentDrawingRegion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user