From: Good Guy Date: Tue, 30 Jul 2019 00:23:05 +0000 (-0600) Subject: fix outer color setup for yuv in gradient, fix last_xy update in sketcher grab_event X-Git-Tag: 2019-08~9 X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=d68248049f2164ee236816085baedd4624bcee10;p=goodguy%2Fcinelerra.git fix outer color setup for yuv in gradient, fix last_xy update in sketcher grab_event --- diff --git a/cinelerra-5.1/plugins/gradient/gradient.C b/cinelerra-5.1/plugins/gradient/gradient.C index fa001041..6ceb8b1b 100644 --- a/cinelerra-5.1/plugins/gradient/gradient.C +++ b/cinelerra-5.1/plugins/gradient/gradient.C @@ -1045,9 +1045,9 @@ void GradientUnit::process_package(LoadPackage *package) int out1, out2, out3, out4; YUV::yuv.rgb_to_yuv_8(in_r,in_g,in_b, in1,in2,in3); in4 = plugin->config.in_a; - int out_r = plugin->config.in_r; - int out_g = plugin->config.in_g; - int out_b = plugin->config.in_b; + int out_r = plugin->config.out_r; + int out_g = plugin->config.out_g; + int out_b = plugin->config.out_b; YUV::yuv.rgb_to_yuv_8(out_r,out_g,out_b, out1,out2,out3); out4 = plugin->config.out_a; CREATE_GRADIENT(unsigned char, int, 3, 0xff) @@ -1061,9 +1061,9 @@ void GradientUnit::process_package(LoadPackage *package) int out1, out2, out3, out4; YUV::yuv.rgb_to_yuv_8(in_r,in_g,in_b, in1,in2,in3); in4 = plugin->config.in_a; - int out_r = plugin->config.in_r; - int out_g = plugin->config.in_g; - int out_b = plugin->config.in_b; + int out_r = plugin->config.out_r; + int out_g = plugin->config.out_g; + int out_b = plugin->config.out_b; YUV::yuv.rgb_to_yuv_8(out_r,out_g,out_b, out1,out2,out3); out4 = plugin->config.out_a; CREATE_GRADIENT(unsigned char, int, 4, 0xff) diff --git a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C index dd917e4b..2235260c 100644 --- a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C +++ b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C @@ -472,7 +472,7 @@ int SketcherWindow::grab_event(XEvent *event) if( grab_cursor_motion() ) pending_config = 1; if( pending_config ) { - last_x = output_x; last_y = output_y; + last_x = track_x; last_y = track_y; send_configure_change(); } }