Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 34:c43f2c4f66f2
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 202d1dca67d2 |
children | f2c416cbdaa9 |
comparison
equal
deleted
inserted
replaced
33:651e4e868bcc | 34:c43f2c4f66f2 |
---|---|
105 if (name == tr("Gain")) { | 105 if (name == tr("Gain")) { |
106 | 106 |
107 *min = -50; | 107 *min = -50; |
108 *max = 50; | 108 *max = 50; |
109 | 109 |
110 deft = int(nearbyint(log10(m_gain) * 20.0)); | 110 deft = lrint(log10(m_gain) * 20.0); |
111 if (deft < *min) deft = *min; | 111 if (deft < *min) deft = *min; |
112 if (deft > *max) deft = *max; | 112 if (deft > *max) deft = *max; |
113 | 113 |
114 } else if (name == tr("Colour")) { | 114 } else if (name == tr("Colour")) { |
115 | 115 |