X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fbluebanana%2Fbluebananawindow.C;h=b7db7a0cc81b307dd6ba1b75b722c356e211fbcf;hb=0190f5c29f6834ceea98b1f56ca9115145012758;hp=10692ce465bccd1ce0a81611e1fea6a91490d458;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/bluebanana/bluebananawindow.C b/cinelerra-5.1/plugins/bluebanana/bluebananawindow.C index 10692ce4..b7db7a0c 100644 --- a/cinelerra-5.1/plugins/bluebanana/bluebananawindow.C +++ b/cinelerra-5.1/plugins/bluebanana/bluebananawindow.C @@ -22,16 +22,18 @@ #include #include "bcdisplayinfo.h" #include "bcsignals.h" +#include "brender.h" #include "cursors.h" -#include "bluebanana.h" -#include "bluebananaconfig.h" -#include "bluebananaslider.h" -#include "bluebananawindow.h" +#include "edl.h" #include "keys.h" #include "language.h" #include "plugin.h" -#include "brender.h" +#include "tracks.h" +#include "bluebanana.h" +#include "bluebananaconfig.h" +#include "bluebananaslider.h" +#include "bluebananawindow.h" #include "bluebananacolor.c" @@ -2034,7 +2036,7 @@ public: // --------------------------------------- Main GUI window -------------------------------------- BluebananaWindow::BluebananaWindow(BluebananaMain *plugin) - : PluginClientWindow(plugin,1000,1000,0,1,1) + : PluginClientWindow(plugin,xS(1000),yS(1000),0,1,1) { do_render=0; windowx = get_x(); @@ -2478,8 +2480,10 @@ int BluebananaWindow::repeat_event(int64_t d){ if(config_consume!=config_produce) flush_config_change(); } - if(!plugin->server->plugin) return 0; - if(!plugin->server->plugin->on) return 0; + PluginServer *server = plugin->server; + int plugin_id = server->plugin_id; + Plugin *gui_plugin = server->edl->tracks->plugin_exists(plugin_id); + if(!gui_plugin || !gui_plugin->on) return 0; if(d==207){ /* if background render is active and we're showing the zebra, mark