actually add the converted rects to the region
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16716 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -367,12 +367,18 @@ DrawState::Transform(BRegion* region) const
|
|||||||
// reset bottom right to pixel "index"
|
// reset bottom right to pixel "index"
|
||||||
rb.x++;
|
rb.x++;
|
||||||
rb.y++;
|
rb.y++;
|
||||||
|
// add rect to converted region
|
||||||
|
// NOTE/TODO: the rect would not have to go
|
||||||
|
// through the whole interection test process,
|
||||||
|
// it is guaranteed not to overlap with any rect
|
||||||
|
// already contained in the region
|
||||||
|
converted.AddRect(BRect(lt, rb));
|
||||||
}
|
}
|
||||||
*region = converted;
|
*region = converted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// InverseTransform
|
|
||||||
void
|
void
|
||||||
DrawState::InverseTransform(BPoint* point) const
|
DrawState::InverseTransform(BPoint* point) const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user