Constrain an item's value to be in the range of 0 to 100.

Add function contrain() and replace checking the bounds by it.

Add it for mouse wheeling, too, where it has been missing so far.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@37122 b3059339-0415-0410-9bf9-f77b7e298cf2
Don't use item_hpotmeter() for vpotmeter parsing.

Add a new function parse_potmeter()
as a common parser for all potmeters.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@37123 b3059339-0415-0410-9bf9-f77b7e298cf2
Make the current item string as currItem global.

Utilize this variable instead of using string constants.

This allows naming the particular potmeter now.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@37124 b3059339-0415-0410-9bf9-f77b7e298cf2