From 1b7f16543c2d9e17c48f2cf732fa6b52bc722233 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 7 Mar 2006 08:43:25 +0000 Subject: [PATCH] Draw the small hand in the right bottom corner git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16621 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Dragger.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Dragger.cpp b/src/kits/interface/Dragger.cpp index 6d2b5702b9..47ba865a22 100644 --- a/src/kits/interface/Dragger.cpp +++ b/src/kits/interface/Dragger.cpp @@ -162,8 +162,9 @@ BDragger::Draw(BRect update) BRect bounds(Bounds()); if (AreDraggersDrawn() && (!fShelf || fShelf->AllowsDragging())) { + BPoint where = bounds.RightBottom() - BPoint(fBitmap->Bounds().Width(), fBitmap->Bounds().Height()); SetDrawingMode(B_OP_OVER); - DrawBitmap(fBitmap, bounds.LeftTop()); + DrawBitmap(fBitmap, where); SetDrawingMode(B_OP_COPY); if (fIsZombie) { @@ -282,7 +283,8 @@ BDragger::MessageReceived(BMessage *msg) } else if (msg->what == B_SCREEN_CHANGED) { if (fRelation == TARGET_IS_CHILD) { fTransition = true; - Draw(BRect()); + Invalidate(); + Flush(); fTransition = false; } else {