Interface Kit: fix BDragger background drawing

Change-Id: I1ce8eca127e14af0652ef38fedcbbf588f1567fd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2092
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
X512 2020-01-10 01:41:21 +09:00 committed by waddlesplash
parent dcfd4f324e
commit 52ac76ce34
1 changed files with 0 additions and 10 deletions

View File

@ -251,16 +251,6 @@ BDragger::Draw(BRect update)
BRect bounds(Bounds());
if (AreDraggersDrawn() && (fShelf == NULL || fShelf->AllowsDragging())) {
if (Parent() != NULL && (Parent()->Flags() & B_DRAW_ON_CHILDREN) == 0) {
uint32 flags = Parent()->Flags();
Parent()->SetFlags(flags | B_DRAW_ON_CHILDREN);
SetHighColor(Parent()->ViewColor());
FillRect(Bounds());
Parent()->Draw(Frame() & ConvertToParent(update));
Parent()->Flush();
Parent()->SetFlags(flags);
}
BPoint where = bounds.RightBottom() - BPoint(fBitmap->Bounds().Width(),
fBitmap->Bounds().Height());
SetDrawingMode(B_OP_OVER);