X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fmotion51%2Fmotion51.C;h=f29ea0bbff57099026887cc722cc84dbb3278c9f;hb=09c2f5f26f06b33101230e42cdb0a482a6cccf76;hp=b16cdbc9b60b2bb29316ba7354338e3b6112fbee;hpb=667a32e310893e4df0412eb8e91263d4dc57e12e;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/motion51/motion51.C b/cinelerra-5.1/plugins/motion51/motion51.C index b16cdbc9..f29ea0bb 100644 --- a/cinelerra-5.1/plugins/motion51/motion51.C +++ b/cinelerra-5.1/plugins/motion51/motion51.C @@ -578,10 +578,10 @@ int Motion51VVFrame::draw_pixel(int x, int y) { VFrame::draw_pixel(x+0, y+0); for( int i=1; iget_w(), ih = img->get_h(); int mx = iw > ih ? iw : ih; - Motion51VVFrame vfrm(img, mx/800+1); + int n = mx/800 + 1; + Motion51VVFrame vfrm(img, n); + vfrm.set_pixel_color(WHITE); + int m = 2; while( m < n ) m <<= 1; + vfrm.set_stiple(2*m); vfrm.draw_arrow(rx, ry, rx+current_dx, ry+current_dy); // vfrm.draw_smooth(rx-rr,ry, rx-rr,ry+rr, rx,ry+rr);