upgrade bld_prep.sh debian libpng, add rectify timeline audio pref, rework maskgui...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / interfaceprefs.C
index b75c0bfc0c679068c21f3d035ec0ae03f98774c5..c7dcc8a0b1a59a2cdc9df341defb70ea22b02637 100644 (file)
@@ -215,9 +215,9 @@ void InterfacePrefs::create_objects()
                _("Index Path"), _("Select the directory for index files"), 1));
 
        y += 30;
-       add_subwindow(new BC_Title(x, y + 5, _("Size of index file:"),
+       add_subwindow(new BC_Title(x, y + 5, _("Size of index file in KB:"),
                MEDIUMFONT, resources->text_default));
-       sprintf(string, "%jd", pwindow->thread->preferences->index_size);
+       sprintf(string, "%jd", pwindow->thread->preferences->index_size/1024);
        add_subwindow(isize = new IndexSize(x + 230, y, pwindow, string));
        add_subwindow(new ScanCommercials(pwindow, 400,y));
 
@@ -274,8 +274,8 @@ int IndexSize::handle_event()
 {
        long result;
 
-       result = atol(get_text());
-       if(result < 64000) result = 64000;
+       result = atol(get_text()) * 1024;
+       if( result < 65536 ) result = 65536;
        //if(result < 500000) result = 500000;
        pwindow->thread->preferences->index_size = result;
        return 0;