Fix gray envelope/LFO bug
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1982 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -45,6 +45,9 @@
|
||||
- Begin themeing widgets with the new LmmsStyle interface
|
||||
- Minor tweaks and code style improvements
|
||||
|
||||
* src/gui/widgets/envelope_and_lfo_view.cpp:
|
||||
Fix backwards Color-to-gray in env and LFO graphs
|
||||
|
||||
2009-01-26 Paul Giblock <drfaygo/at/gmail/dot/com>
|
||||
|
||||
* src/tracks/bb_track.cpp:
|
||||
|
||||
@@ -429,7 +429,7 @@ void envelopeAndLFOView::paintEvent( QPaintEvent * )
|
||||
|
||||
LmmsStyle * style = engine::getLmmsStyle();
|
||||
QColor lineColor = style->color(LmmsStyle::StandardGraphLine);
|
||||
const float gray_amount = 1.0f - fabsf( m_amountKnob->value<float>() );
|
||||
const float gray_amount = fabsf( m_amountKnob->value<float>() );
|
||||
|
||||
p.setPen( QPen( QColor::fromHsvF(
|
||||
lineColor.hueF(),
|
||||
@@ -494,7 +494,7 @@ void envelopeAndLFOView::paintEvent( QPaintEvent * )
|
||||
const float framesForGraph = SECS_PER_LFO_OSCILLATION *
|
||||
engine::getMixer()->baseSampleRate() / 10;
|
||||
|
||||
const float lfoGrayAmount = 1.0f - fabsf( m_lfoAmountKnob->value<float>() );
|
||||
const float lfoGrayAmount = fabsf( m_lfoAmountKnob->value<float>() );
|
||||
p.setPen( QPen( QColor::fromHsvF(
|
||||
lineColor.hueF(),
|
||||
lineColor.saturationF() * lfoGrayAmount,
|
||||
|
||||
Reference in New Issue
Block a user