round off the destination view rect of the view bitmap to avoid problems with drawing the view color around it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15753 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -373,7 +373,7 @@ ViewLayer::SetUserClipping(const BRegion& region)
|
|||||||
{
|
{
|
||||||
fDrawState->SetClippingRegion(region);
|
fDrawState->SetClippingRegion(region);
|
||||||
|
|
||||||
// rebuild clipping
|
// rebuild clipping (for just this view)
|
||||||
RebuildClipping(false);
|
RebuildClipping(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -394,6 +394,13 @@ ViewLayer::SetViewBitmap(ServerBitmap* bitmap, BRect sourceRect,
|
|||||||
fBitmapDestination = destRect;
|
fBitmapDestination = destRect;
|
||||||
fBitmapResizingMode = resizingMode;
|
fBitmapResizingMode = resizingMode;
|
||||||
fBitmapOptions = options;
|
fBitmapOptions = options;
|
||||||
|
|
||||||
|
// round off destination rect to avoid problems
|
||||||
|
// with drawing the view color around the bitmap
|
||||||
|
fBitmapDestination.OffsetTo(roundf(fBitmapDestination.left),
|
||||||
|
roundf(fBitmapDestination.top));
|
||||||
|
fBitmapDestination.right = roundf(fBitmapDestination.right);
|
||||||
|
fBitmapDestination.bottom = roundf(fBitmapDestination.bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user