anonymous contribution for much improved ChromakeyHSV plugin menu with boxes to set...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / chromakey / chromakey.C
index 6ec5af686540af347e02bf362bc571e7a57f6c0e..832a1d45cfe32e4035820002099de57b69173dce 100644 (file)
@@ -318,7 +318,9 @@ int ChromaKeyColorThread::handle_new_color(int output, int alpha)
        plugin->config.red = (float)(output & 0xff0000) / 0xff0000;
        plugin->config.green = (float)(output & 0xff00) / 0xff00;
        plugin->config.blue = (float)(output & 0xff) / 0xff;
+       gui->lock_window("ChromaKeyColorThread::handle_new_color");
        gui->update_sample();
+       gui->unlock_window();
        plugin->send_configure_change();
        return 1;
 }
@@ -809,7 +811,7 @@ SET_TRACE
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
        glDisable(GL_BLEND);
 SET_TRACE
-       return 0;
 #endif
+       return 0;
 }