bsd compatibility mods
[goodguy/history.git] / cinelerra-5.1 / plugins / motion2point / motionwindow.C
index ccfbe5046040bdde5d4f572008e8e3b25b4e2209..8b3307247f23927964feea39687c96c1bd462afe 100644 (file)
 
 
 MotionWindow::MotionWindow(MotionMain2 *plugin)
- : PluginClientWindow(plugin,
-       600,
-       640,
-       600,
-       640,
-       0)
+ : PluginClientWindow(plugin, 680, 660, 680, 660, 0)
 {
        this->plugin = plugin;
 }
@@ -53,7 +48,7 @@ MotionWindow::~MotionWindow()
 
 void MotionWindow::create_objects()
 {
-       int x1[] = { 10, 310 };
+       int x1[] = { 10, get_w()/2 };
        int x = 10, y = 10, y1 = 10;
        BC_Title *title;
 
@@ -205,6 +200,8 @@ void MotionWindow::create_objects()
                this,
                x + track_single->get_w() + title->get_w() + 20,
                y));
+       if(plugin->config.tracking_object != MotionScan::TRACK_SINGLE)
+               track_frame_number->disable();
 
        y += 20;
        add_subwindow(track_previous = new TrackPreviousFrame(plugin,
@@ -619,7 +616,6 @@ TrackFrameNumber::TrackFrameNumber(MotionMain2 *plugin,
 {
        this->plugin = plugin;
        this->gui = gui;
-       if(plugin->config.tracking_object != MotionScan::TRACK_SINGLE) disable();
 }
 
 int TrackFrameNumber::handle_event()