Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
plib
plib-1.8.5-commit2139-slider.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plib-1.8.5-commit2139-slider.patch of Package plib
Allow slider fractions of 1.0 -- don't force them to 0.9 -- in puSlider.cxx (e-mail by Melchior Franz on Mon 1/12/2009 1:23 PM --- src/pui/puSlider.cxx 2009/01/13 15:42:26 2138 +++ src/pui/puSlider.cxx 2009/01/13 15:47:52 2139 @@ -131,8 +131,11 @@ next_value = 0.5f ; else { - next_value = ( (float)coord - (float)abox.min[sd] - (float)sz * slider_fraction / 2.0f ) / - ( (float) sz * (1.0f - slider_fraction) ) ; + if ( slider_fraction >= 1.0f ) + next_value = 0 ; + else + next_value = ( (float)coord - (float)abox.min[sd] - (float)sz * slider_fraction / 2.0f ) / + ( (float) sz * (1.0f - slider_fraction) ) ; } next_value = (next_value < 0.0f) ? 0.0f : (next_value > 1.0f) ? 1.0f : next_value ; @@ -177,7 +180,7 @@ int sz = abox.max [i] - abox.min [i] ; // Size of slider box, in pixels float minf = 10.0f / sz ; // fraction that makes a 10px handle - slider_fraction = (f<minf) ? minf : (f>=1.0f) ? 0.9f : f ; + slider_fraction = (f<minf) ? minf : (f>1.0f) ? 1.0f : f ; puPostRefresh () ; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor