fix awdw solo vicon crash, fix nested clip for binfolders, open edit edl
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / mandelcuda / mandelbrotwindow.C
index 1808bc43849117ff215f3fa51fc08b1dc67f271b..f1b0550214864cab7f2f1caaf2fc7fe16c12d447 100644 (file)
@@ -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);
                }
        }
@@ -173,6 +172,13 @@ int MandelbrotDrag::handle_event()
                gui->ungrab(cwindow_gui);
        return 1;
 }
+int MandelbrotDrag::handle_ungrab()
+{
+       CWindowGUI *cwindow_gui = gui->plugin->server->mwindow->cwindow->gui;
+       int ret = gui->ungrab(cwindow_gui);
+       if( ret ) update(*value = 0);
+       return ret;
+}
 
 MandelbrotIsJulia::MandelbrotIsJulia(MandelbrotWindow *gui, int x, int y)
  : BC_CheckBox(x, y, gui->plugin->config.is_julia, _("Julia"))