From: Good Guy Date: Sat, 10 Mar 2018 00:07:56 +0000 (-0700) Subject: viewer v/b/i/c with shift, titler rgb float fix X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=commitdiff_plain;h=717c4ad1dac14387ac7519228b904026a3a7d493 viewer v/b/i/c with shift, titler rgb float fix --- diff --git a/cinelerra-5.1/cinelerra/editpanel.C b/cinelerra-5.1/cinelerra/editpanel.C index 8da34dba..75ee8d42 100644 --- a/cinelerra-5.1/cinelerra/editpanel.C +++ b/cinelerra-5.1/cinelerra/editpanel.C @@ -835,7 +835,9 @@ int EditOverwrite::handle_event() } int EditOverwrite::keypress_event() { - if( get_keypress() == 'b' ) { + if( alt_down() ) return 0; + if( get_keypress() == 'b' || + (panel->is_vwindow() && get_keypress() == 'B') ) { handle_event(); return 1; } @@ -876,7 +878,9 @@ int EditToClip::handle_event() int EditToClip::keypress_event() { - if( get_keypress() == 'i' && !alt_down() ) { + if( alt_down() ) return 0; + if( get_keypress() == 'i' || + (panel->is_vwindow() && get_keypress() == 'I') ) { handle_event(); return 1; } @@ -928,7 +932,9 @@ int EditSplice::handle_event() } int EditSplice::keypress_event() { - if( get_keypress() == 'v' ) { + if( alt_down() ) return 0; + if( get_keypress() == 'v' || + (panel->is_vwindow() && get_keypress() == 'V') ) { handle_event(); return 1; } @@ -1035,8 +1041,11 @@ EditCopy::~EditCopy() int EditCopy::keypress_event() { - if( get_keypress() == 'c' ) + if( alt_down() ) return 0; + if( get_keypress() == 'c' || + (panel->is_vwindow() && get_keypress() == 'C') ) { return handle_event(); + } return 0; } int EditCopy::handle_event() diff --git a/cinelerra-5.1/doc/shortcuts.html b/cinelerra-5.1/doc/shortcuts.html index e3b258c9..15a65cc7 100644 --- a/cinelerra-5.1/doc/shortcuts.html +++ b/cinelerra-5.1/doc/shortcuts.html @@ -1551,7 +1551,7 @@
To clip - 'I' + 'i' Copy selection and create clip @@ -1560,6 +1560,30 @@ 'c' Copy selection to cut buffer + +
+ Splice + 'v' + Shift + Create splice of entire clip + + +
+ Overwrite + 'b + Shift' + Overwrite the entire clip + + +
+ To clip + 'i + Shift + Copy all and create clip + + +
+ Copy + 'c' + Shift + Copy entire clip to cut buffer +
Show meters diff --git a/cinelerra-5.1/plugins/titler/titler.C b/cinelerra-5.1/plugins/titler/titler.C index a3f2411b..117e279e 100644 --- a/cinelerra-5.1/plugins/titler/titler.C +++ b/cinelerra-5.1/plugins/titler/titler.C @@ -2188,7 +2188,7 @@ TitleTranslateUnit::TitleTranslateUnit(TitleMain *plugin, TitleTranslate *server #define TRANSLATE(type, max, comps, ofs) { \ type **out_rows = (type**)output->get_rows(); \ - float fs = 1./(256.-max); \ + float fr = 1./(256.-max), fs = max/255.; \ float r = max > 1 ? 0.5 : 0; \ for( int y=y1; y