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
This commit is contained in:
@@ -162,8 +162,9 @@ BDragger::Draw(BRect update)
|
|||||||
BRect bounds(Bounds());
|
BRect bounds(Bounds());
|
||||||
|
|
||||||
if (AreDraggersDrawn() && (!fShelf || fShelf->AllowsDragging())) {
|
if (AreDraggersDrawn() && (!fShelf || fShelf->AllowsDragging())) {
|
||||||
|
BPoint where = bounds.RightBottom() - BPoint(fBitmap->Bounds().Width(), fBitmap->Bounds().Height());
|
||||||
SetDrawingMode(B_OP_OVER);
|
SetDrawingMode(B_OP_OVER);
|
||||||
DrawBitmap(fBitmap, bounds.LeftTop());
|
DrawBitmap(fBitmap, where);
|
||||||
SetDrawingMode(B_OP_COPY);
|
SetDrawingMode(B_OP_COPY);
|
||||||
|
|
||||||
if (fIsZombie) {
|
if (fIsZombie) {
|
||||||
@@ -282,7 +283,8 @@ BDragger::MessageReceived(BMessage *msg)
|
|||||||
} else if (msg->what == B_SCREEN_CHANGED) {
|
} else if (msg->what == B_SCREEN_CHANGED) {
|
||||||
if (fRelation == TARGET_IS_CHILD) {
|
if (fRelation == TARGET_IS_CHILD) {
|
||||||
fTransition = true;
|
fTransition = true;
|
||||||
Draw(BRect());
|
Invalidate();
|
||||||
|
Flush();
|
||||||
fTransition = false;
|
fTransition = false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user