[haiku-commits] Re: r36787 - haiku/trunk/src/kits/tracker

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 11 May 2010 10:19:46 +0200

On 2010-05-11 at 10:01:36 [+0200], axeld@xxxxxxxxxxxxxxxx wrote:
> Author: axeld
> Date: 2010-05-11 10:01:36 +0200 (Tue, 11 May 2010)
> New Revision: 36787
> Changeset: http://dev.haiku-os.org/changeset/36787/haiku
> 
> Modified:
>    haiku/trunk/src/kits/tracker/PoseView.cpp
> Log:
> * I'm not sure why it happens, but the drag bitmap offset was BPoint(2, 1) 
> off
>   (that should be good enough for the current Tracker).
> * Minor cleanup.
> 
> 
> Modified: haiku/trunk/src/kits/tracker/PoseView.cpp
> ===================================================================
> --- haiku/trunk/src/kits/tracker/PoseView.cpp    2010-05-11 07:46:19 UTC 
> (rev 36786)
> +++ haiku/trunk/src/kits/tracker/PoseView.cpp    2010-05-11 08:01:36 UTC 
> (rev 36787)
> @@ -6748,7 +6748,8 @@
>  

[...]

>      // set the offset for the dragged bitmap (for the BView::DragMessage() 
>      call)
> -    offset = clickedPoint - inner.LeftTop();
> +    offset = clickedPoint - BPoint(2, 1) - inner.LeftTop();

Interesting. /Could/ be the hotspot of the system cursor.

Best regards,
-Stephan

Other related posts: