[haiku-commits] r40882 - haiku/trunk/src/tests/servers/app/playground

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 8 Mar 2011 22:04:29 +0100 (CET)

Author: stippi
Date: 2011-03-08 22:04:29 +0100 (Tue, 08 Mar 2011)
New Revision: 40882
Changeset: http://dev.haiku-os.org/changeset/40882

Modified:
   haiku/trunk/src/tests/servers/app/playground/ObjectView.cpp
Log:
Don't hide the dragMessage parameter (which was unused). CID 5333.


Modified: haiku/trunk/src/tests/servers/app/playground/ObjectView.cpp
===================================================================
--- haiku/trunk/src/tests/servers/app/playground/ObjectView.cpp 2011-03-08 
20:59:00 UTC (rev 40881)
+++ haiku/trunk/src/tests/servers/app/playground/ObjectView.cpp 2011-03-08 
21:04:29 UTC (rev 40882)
@@ -322,11 +322,12 @@
        } 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 @@
                                helper->Sync();
                        }
                        
-                       DragMessage(&dragMessage, dragBitmap, B_OP_ALPHA, 
B_ORIGIN, this);
+                       DragMessage(&newDragMessage, dragBitmap, B_OP_ALPHA, 
B_ORIGIN,
+                               this);
                        fInitiatingDrag = false;
                }
        } else {


Other related posts:

  • » [haiku-commits] r40882 - haiku/trunk/src/tests/servers/app/playground - superstippi