---
** [patches:#546] moonlib/mknob fix for pd-vanilla**
**Status:** open **Group:** bugfix **Labels:** pd-vanilla-compatibility moonlib **Created:** Sun May 03, 2015 09:11 AM UTC by electrickery **Last Updated:** Sun May 03, 2015 09:11 AM UTC **Owner:** nobody
The moonlib/mknob objects uses the t_iem_init_symargs->x_reverse struct element inside the t_iemgui struct. This element appears to be pd-extended only, as the object will not build against pd-vanilla (0.46.6) headers. Loading the object in a pd-vanilla environment will probably result in undesired behaviour.
The x_reverse is set in mknob_check_minmax as the result of (x->x_min > x->x_max) and used only in mknob_set. By moving the "min > max" check to mknob_set, the x->x_gui.x_isa.x_reverse can be eliminated, and pd-vanilla compatibility restored.
---
Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.