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) {
|
||||
BPoint offset = fLastMousePos - where;
|
||||
if (sqrtf(offset.x * offset.x + offset.y * offset.y) > 5.0) {
|
||||
BMessage dragMessage('drag');
|
||||
BBitmap* dragBitmap = new BBitmap(BRect(0, 0, 40, 40), B_RGBA32, true);
|
||||
BMessage newDragMessage('drag');
|
||||
BBitmap* dragBitmap = new BBitmap(BRect(0, 0, 40, 40), B_RGBA32,
|
||||
true);
|
||||
if (dragBitmap->Lock()) {
|
||||
BView* helper = new BView(dragBitmap->Bounds(), "offscreen view",
|
||||
B_FOLLOW_ALL, B_WILL_DRAW);
|
||||
BView* helper = new BView(dragBitmap->Bounds(),
|
||||
"offscreen view", B_FOLLOW_ALL, B_WILL_DRAW);
|
||||
dragBitmap->AddChild(helper);
|
||||
helper->SetDrawingMode(B_OP_ALPHA);
|
||||
helper->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||
@@ -346,7 +347,8 @@ if (dragMessage) {
|
||||
helper->Sync();
|
||||
}
|
||||
|
||||
DragMessage(&dragMessage, dragBitmap, B_OP_ALPHA, B_ORIGIN, this);
|
||||
DragMessage(&newDragMessage, dragBitmap, B_OP_ALPHA, B_ORIGIN,
|
||||
this);
|
||||
fInitiatingDrag = false;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user