mirror of https://github.com/axmolengine/axmol.git
Sync fix
This commit is contained in:
parent
31ed6d97a9
commit
0016ea2b62
|
@ -79,8 +79,8 @@ void GSlider::setWholeNumbers(bool value)
|
|||
|
||||
void GSlider::update()
|
||||
{
|
||||
double percent = MIN(_value / _max, 1);
|
||||
updateWithPercent(static_cast<float>(percent), false);
|
||||
float percent = MIN((_value - _min) / (_max - _min), 1);
|
||||
updateWithPercent(percent, false);
|
||||
}
|
||||
|
||||
void GSlider::updateWithPercent(float percent, bool manual)
|
||||
|
|
Loading…
Reference in New Issue