fix segv for plugin render_gui when plugin moved up/dn, opencv build fixes, opts...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / recordwindow.C
index 87ad8cc60cc278fcb3fcc4aaa9929444b0b674a3..0e372f69c24077ccc6137aefd65bec7407e36dad 100644 (file)
@@ -44,10 +44,11 @@ RecordWindow::~RecordWindow()
 
 void RecordWindow::create_objects()
 {
+       int x = xS(5), y = yS(5);
        lock_window("RecordWindow::create_objects");
-       add_subwindow(new BC_Title(5, 5, _("Select a file to record to:")));
+       add_subwindow(new BC_Title(x, y, _("Select a file to record to:")));
 
-       int x = 5, y = 25;
+       y = yS(25);
        format_tools = new FormatTools(mwindow, this, record->default_asset);
        format_tools->create_objects(x, y, 1, 1, 1, 1, 1, 1,
                                        /* record->fixed_compression */ 0,
@@ -55,7 +56,7 @@ void RecordWindow::create_objects()
 
 // Not the same as creating a new file at each label.
 // Load mode is now located in the RecordGUI
-       x = 10;
+//     x = xS(10);
 //     loadmode = new LoadMode(this, x, y, &record->load_mode, 1);
 //     loadmode->create_objects();
 
@@ -67,9 +68,14 @@ void RecordWindow::create_objects()
 
 
 RecordToTracks::RecordToTracks(Record *record, int default_)
- : BC_CheckBox(200, 270, default_) { this->record = record; }
+ : BC_CheckBox(xS(200), yS(270), default_)
+{
+       this->record = record;
+}
 RecordToTracks::~RecordToTracks()
-{}
+{
+}
+
 int RecordToTracks::handle_event()
 {
        record->to_tracks = get_value();