- if( item_return->icon )
- drag_popup = new BC_DragWindow(this,
- item_return->icon, cx, cy);
- else
- drag_popup = new BC_DragWindow(this,
- drag_icon_vframe, cx, cy);
- current_operation = DRAG_ITEM;
-// require shift down for scrolling
- if( allow_drag < 0 && shift_down() )
- set_repeat(get_resources()->scroll_repeat);
- return 1;
+ if( item_return->icon ) {
+ cx -= item_return->icon->get_w() / 2,
+ cy -= item_return->icon->get_h() / 2;
+ drag_popup = new BC_DragWindow(this,
+ item_return->icon, cx, cy);