* default source BRect is now offset to B_ORIGIN because Bitmap bounds lefttop could be something else than (0,0). This caused some bugs in Haiku SoundRecorder app
i* thus the NOTE in Painter isn't valid anymore * in Painter::_DrawBimap() moved scale computation after potential changes to BRects * fix typo : right => bottom. This caused a bug in Haiku Mouse preferences app git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18017 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2204,7 +2204,7 @@ BView::DrawBitmapAsync(const BBitmap *bitmap, BRect srcRect, BRect dstRect)
|
||||
void
|
||||
BView::DrawBitmapAsync(const BBitmap *bitmap, BRect dstRect)
|
||||
{
|
||||
DrawBitmapAsync(bitmap, bitmap->Bounds(), dstRect);
|
||||
DrawBitmapAsync(bitmap, bitmap->Bounds().OffsetToCopy(B_ORIGIN), dstRect);
|
||||
}
|
||||
|
||||
|
||||
@@ -2226,7 +2226,7 @@ BView::DrawBitmapAsync(const BBitmap *bitmap, BPoint where)
|
||||
|
||||
fOwner->fLink->StartMessage(AS_LAYER_DRAW_BITMAP);
|
||||
fOwner->fLink->Attach<int32>(bitmap->_ServerToken());
|
||||
BRect src = bitmap->Bounds();
|
||||
BRect src = bitmap->Bounds().OffsetToCopy(B_ORIGIN);
|
||||
BRect dst = src.OffsetToCopy(where);
|
||||
fOwner->fLink->Attach<BRect>(dst);
|
||||
fOwner->fLink->Attach<BRect>(src);
|
||||
@@ -2256,7 +2256,7 @@ BView::DrawBitmap(const BBitmap *bitmap, BPoint where)
|
||||
void
|
||||
BView::DrawBitmap(const BBitmap *bitmap, BRect dstRect)
|
||||
{
|
||||
DrawBitmap(bitmap, bitmap->Bounds(), dstRect);
|
||||
DrawBitmap(bitmap, bitmap->Bounds().OffsetToCopy(B_ORIGIN), dstRect);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user