Don't hide the dragMessage parameter (which was unused). CID 5333.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40882 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -322,11 +322,12 @@ if (dragMessage) {
|
|||||||
} else if (fInitiatingDrag) {
|
} else if (fInitiatingDrag) {
|
||||||
BPoint offset = fLastMousePos - where;
|
BPoint offset = fLastMousePos - where;
|
||||||
if (sqrtf(offset.x * offset.x + offset.y * offset.y) > 5.0) {
|
if (sqrtf(offset.x * offset.x + offset.y * offset.y) > 5.0) {
|
||||||
BMessage dragMessage('drag');
|
BMessage newDragMessage('drag');
|
||||||
BBitmap* dragBitmap = new BBitmap(BRect(0, 0, 40, 40), B_RGBA32, true);
|
BBitmap* dragBitmap = new BBitmap(BRect(0, 0, 40, 40), B_RGBA32,
|
||||||
|
true);
|
||||||
if (dragBitmap->Lock()) {
|
if (dragBitmap->Lock()) {
|
||||||
BView* helper = new BView(dragBitmap->Bounds(), "offscreen view",
|
BView* helper = new BView(dragBitmap->Bounds(),
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW);
|
"offscreen view", B_FOLLOW_ALL, B_WILL_DRAW);
|
||||||
dragBitmap->AddChild(helper);
|
dragBitmap->AddChild(helper);
|
||||||
helper->SetDrawingMode(B_OP_ALPHA);
|
helper->SetDrawingMode(B_OP_ALPHA);
|
||||||
helper->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
helper->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||||
@@ -346,7 +347,8 @@ if (dragMessage) {
|
|||||||
helper->Sync();
|
helper->Sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
DragMessage(&dragMessage, dragBitmap, B_OP_ALPHA, B_ORIGIN, this);
|
DragMessage(&newDragMessage, dragBitmap, B_OP_ALPHA, B_ORIGIN,
|
||||||
|
this);
|
||||||
fInitiatingDrag = false;
|
fInitiatingDrag = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user