Make the -legacy flag canvas-local.
[declare -legacy] enables legacy positioning as with the global -legacy flag, but on a canvas-local basis. If not set in a patch, the flag defaults to its global counterpart. Note that there is no argument, so you can only enable this, not disable it. Moreover, once set, the flag is inherited by all subpatches. This declaration allows you to use vanilla subpatches in Purr Data where iemguis are positioned in a slightly different way, which may cause gop patches created in vanilla to be rendered incorrectly. Adding [declare -legacy] to the vanilla subpatch gets rid of these issues, while the rest of your patch is rendered as usual. Note that the global -legacy startup option will affect *all* patches loaded by Purr Data, which doesn't help if only some subpatches must be rendered in a vanilla-like fashion.
Showing
- pd/src/g_all_guis.c 7 additions, 5 deletionspd/src/g_all_guis.c
- pd/src/g_canvas.c 23 additions, 1 deletionpd/src/g_canvas.c
- pd/src/g_canvas.h 2 additions, 0 deletionspd/src/g_canvas.h
- pd/src/g_graph.c 5 additions, 5 deletionspd/src/g_graph.c
- pd/src/g_vumeter.c 1 addition, 1 deletionpd/src/g_vumeter.c
Loading
Please register or sign in to comment