- Timestamp:
- Jul 1, 2009 1:46:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIAdvancedSlider.cpp
r21120 r21122 163 163 val > 2) 164 164 { 165 float l2 = log 2 ((float)val);165 float l2 = log ((float)val)/log (2.0); 166 166 float snap = 1.0/l2 * 2; /* How much border around the current snaping value (%) */ 167 167 int newVal = pow (2, qRound (l2)); /* The value to snap on */
Note:
See TracChangeset
for help on using the changeset viewer.