[haiku-commits] ***UNCHECKED*** haiku: hrev53716 - src/kits/interface

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 16 Jan 2020 08:28:48 -0500 (EST)

hrev53716 adds 1 changeset to branch 'master'
old head: dcfd4f324e2f8972db6ee3cdc7dfd1831c96049a
new head: 52ac76ce347f38204baed626a14e91e43ada149b
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=52ac76ce347f+%5Edcfd4f324e2f

----------------------------------------------------------------------------

52ac76ce347f: Interface Kit: fix BDragger background drawing
  
  Change-Id: I1ce8eca127e14af0652ef38fedcbbf588f1567fd
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/2092
  Reviewed-by: Adrien Destugues <pulkomandy@xxxxxxxxx>

                                              [ X512 <danger_mail@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53716
Commit:      52ac76ce347f38204baed626a14e91e43ada149b
URL:         https://git.haiku-os.org/haiku/commit/?id=52ac76ce347f
Author:      X512 <danger_mail@xxxxxxx>
Date:        Thu Jan  9 16:41:21 2020 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Thu Jan 16 13:23:57 2020 UTC

----------------------------------------------------------------------------

1 file changed, 10 deletions(-)
src/kits/interface/Dragger.cpp | 10 ----------

----------------------------------------------------------------------------

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);


Other related posts:

  • » [haiku-commits] ***UNCHECKED*** haiku: hrev53716 - src/kits/interface - waddlesplash