From 52ac76ce347f38204baed626a14e91e43ada149b Mon Sep 17 00:00:00 2001 From: X512 Date: Fri, 10 Jan 2020 01:41:21 +0900 Subject: [PATCH] Interface Kit: fix BDragger background drawing Change-Id: I1ce8eca127e14af0652ef38fedcbbf588f1567fd Reviewed-on: https://review.haiku-os.org/c/haiku/+/2092 Reviewed-by: Adrien Destugues --- src/kits/interface/Dragger.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/kits/interface/Dragger.cpp b/src/kits/interface/Dragger.cpp index 1022db13b4..b8fe090e48 100644 --- a/src/kits/interface/Dragger.cpp +++ b/src/kits/interface/Dragger.cpp @@ -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);