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:
parent
dcfd4f324e
commit
52ac76ce34
|
@ -251,16 +251,6 @@ BDragger::Draw(BRect update)
|
||||||
BRect bounds(Bounds());
|
BRect bounds(Bounds());
|
||||||
|
|
||||||
if (AreDraggersDrawn() && (fShelf == NULL || fShelf->AllowsDragging())) {
|
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(),
|
BPoint where = bounds.RightBottom() - BPoint(fBitmap->Bounds().Width(),
|
||||||
fBitmap->Bounds().Height());
|
fBitmap->Bounds().Height());
|
||||||
SetDrawingMode(B_OP_OVER);
|
SetDrawingMode(B_OP_OVER);
|
||||||
|
|
Loading…
Reference in New Issue