On 15-01-17 22:59, Claude Heiland-Allen wrote:
*[bugs:#1283] https://sourceforge.net/p/pure-data/bugs/1283/ zoom level affects vslider output range*
Last year I tried to address the zoom problems with the iem_gui objects, and just added an improved patch to the bug report:
This is the improved patch. It tries to solve all zoom issues within the current Pd objects. It turned out to be quite evasive as refactoring helped clarifying the intention of the code. The changes could be applied with minimal change, but this would compromise code readability. The affected files are: src/g_all_guis.c src/g_all_guis.h src/g_bang.c src/g_hdial.c src/g_hslider.c src/g_numbox.c src/g_text.c src/g_toggle.c src/g_vdial.c src/g_vslider.c src/g_vumeter.c
Only one known potential problem remains; in the slider_motion functions there is code to keep track of the mouse pointer even if it is outside the object. This code worked with the original zoom-functionality, but doesn't in the patched zoom functionality. Removing it make it seem to work in all situations.
Me being lazy, I would consider the problem solved, but as I clearly do not understand it, it could do something useful that I am not aware of.
Greetings,
Fred Jan
*Status:* open *Group:* v0.47 *Created:* Sun Jan 15, 2017 09:59 PM UTC by Claude Heiland-Allen *Last Updated:* Sun Jan 15, 2017 09:59 PM UTC *Owner:* nobody
Steps to reproduce:
- create a new patch window
- create a vslider
- create a number box connected from the vslider
- verify that vslider ranges from 0 to 127
- select zoom in menu option
- notice that vslider now ranges from 0 to 255
Conclusion: vslider output range depends on zoom level, which is probably not intended.
I tested on:
$ pd -version Pd-0.47.1 ("") compiled for Debian (0.47.1-3) on 2016/11/28 at 20:56:10 UTC
(Bug originally reported by a Win10 user in #dataflow)
Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev