X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fmandelcuda%2Fmandelbrotwindow.C;fp=cinelerra-5.1%2Fplugins%2Fmandelcuda%2Fmandelbrotwindow.C;h=f1b0550214864cab7f2f1caaf2fc7fe16c12d447;hb=29a677364bcd43199eeb22e2865ede391b215926;hp=a2b12db995ac657c0587b99ff3babdfe935d154b;hpb=82931d63c508e5953e9d5a19be76b60ec0e146c5;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/mandelcuda/mandelbrotwindow.C b/cinelerra-5.1/plugins/mandelcuda/mandelbrotwindow.C index a2b12db9..f1b05502 100644 --- a/cinelerra-5.1/plugins/mandelcuda/mandelbrotwindow.C +++ b/cinelerra-5.1/plugins/mandelcuda/mandelbrotwindow.C @@ -162,10 +162,9 @@ MandelbrotDrag::MandelbrotDrag(MandelbrotWindow *gui, int x, int y) int MandelbrotDrag::handle_event() { CWindowGUI *cwindow_gui = gui->plugin->server->mwindow->cwindow->gui; - int value = get_value(); - if( value ) { + if( get_value() ) { if( !gui->grab(cwindow_gui) ) { - update(value = 0); + update(*value = 0); flicker(10,50); } } @@ -177,7 +176,7 @@ int MandelbrotDrag::handle_ungrab() { CWindowGUI *cwindow_gui = gui->plugin->server->mwindow->cwindow->gui; int ret = gui->ungrab(cwindow_gui); - if( ret ) update(value = 0); + if( ret ) update(*value = 0); return ret; }