aports/testing/rosegarden/nearbyintf.patch
Natanael Copa 16d1833af5 testing/rosegarden: new aport
MIDI, audio and notation editor
http://www.rosegardenmusic.com/
2012-02-05 13:55:43 +00:00

14 lines
502 B
Diff

uclibc does not have nearbyintf
--- ./src/gui/widgets/Fader.cpp.orig
+++ ./src/gui/widgets/Fader.cpp
@@ -222,7 +222,7 @@
if (m_integral) {
float sliderLength = float(m_sliderMax) - float(m_sliderMin);
position =
- int(nearbyintf(sliderLength * (value - float(m_min)) / float(m_max - m_min) + 0.1));
+ int(nearbyint(sliderLength * (value - float(m_min)) / float(m_max - m_min) + 0.1));
} else {
position =
AudioLevel::dB_to_fader