VirtualBox

Changeset 21122 in vbox for trunk


Ignore:
Timestamp:
Jul 1, 2009 1:46:04 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: fix win

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/QIAdvancedSlider.cpp

    r21120 r21122  
    163163        val > 2)
    164164    {
    165         float l2 = log2 ((float)val);
     165        float l2 = log ((float)val)/log (2.0);
    166166        float snap = 1.0/l2 * 2; /* How much border around the current snaping value (%) */
    167167        int newVal = pow (2, qRound (l2)); /* The value to snap on */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette