Reverse direction of virtical sliders

This new pull request replaces my previous two requests, which were difficult to merge due to changes on the main branch.

These changes will reverse the positioning of the pointer on vertical sliders. The lowest value will set the pointer to the bottom and the highest value will point to the top.

Also included are the changes to eliminate a compiler warning.