title color fader/tweaks, bg_color bcbitmap fix, inst.sh fix, lang fr pref tweaks
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / edit.C
index 347e94086daa8a7a3bae779873c7b5ecbdf065a4..79e95f36ee6202c67ed2e702de69bceb685190ae 100644 (file)
@@ -86,7 +86,7 @@ void Edit::reset()
        is_selected = 0;
        hard_left = 0;
        hard_right = 0;
-       color = -1;
+       color = 0;
 }
 
 Indexable* Edit::get_source()
@@ -817,21 +817,3 @@ void Edit::get_title(char *title)
        }
 }
 
-int Edit::get_hash_color()
-{
-       Indexable *idxbl = asset ? (Indexable*)asset : (Indexable*)nested_edl;
-       if( !idxbl ) return -1;
-       int v = 0;
-       for( uint8_t *bp=(uint8_t*)idxbl->path; *bp; ++bp ) v += *bp;
-       int color = 0x303030;
-       if( v & 0x01 ) color ^= 0x000040;
-       if( v & 0x02 ) color ^= 0x004000;
-       if( v & 0x04 ) color ^= 0x400000;
-       if( v & 0x08 ) color ^= 0x080000;
-       if( v & 0x10 ) color ^= 0x000800;
-       if( v & 0x20 ) color ^= 0x000008;
-       if( v & 0x40 ) color ^= 0x202020;
-       if( v & 0x80 ) color ^= 0x101010;
-       return color;
-}
-