drag win rework, new search, igor theme fixes, sams preset icon
[goodguy/history.git] / cinelerra-5.1 / cinelerra / trackcanvas.C
index 960598c36350b82aaf63d65178802d10be4e9b97..fc36e851f5bcae4b972274b6db229acaae9fa28b 100644 (file)
@@ -4531,8 +4531,6 @@ int TrackCanvas::do_edits(int cursor_x, int cursor_y, int button_press, int drag
 
                                                int cx, cy;
                                                get_abs_cursor(cx, cy);
-                                               cx -= mwindow->theme->get_image("clip_icon")->get_w() / 2,
-                                               cy -= mwindow->theme->get_image("clip_icon")->get_h() / 2;
                                                gui->drag_popup = new BC_DragWindow(gui,
                                                        mwindow->theme->get_image("clip_icon"), cx, cy);
 
@@ -4645,8 +4643,6 @@ int TrackCanvas::do_plugins(int cursor_x, int cursor_y, int drag_start,
                                        }
                                        int cx, cy;
                                        get_abs_cursor(cx, cy);
-                                       cx -= frame->get_w() / 2;
-                                       cy -= frame->get_h() / 2;
                                        gui->drag_popup = new BC_DragWindow(gui, frame, cx, cy);
                                                break; }
 
@@ -4655,8 +4651,6 @@ int TrackCanvas::do_plugins(int cursor_x, int cursor_y, int drag_start,
                                        VFrame *frame = mwindow->theme->get_image("clip_icon");
                                        int cx, cy;
                                        get_abs_cursor(cx, cy);
-                                       cx -= frame->get_w() / 2;
-                                       cy -= frame->get_h() / 2;
                                        gui->drag_popup = new BC_DragWindow(gui, frame, cx, cy);
                                        break; }
                                }