Skip to content

Commit

Permalink
Draw the LFO after the envelope (#1320)
Browse files Browse the repository at this point in the history
The LFO oscillator was drawn before the envelope leading to a misdraw
which was visible at high zoom. Just change the order of path draws.

Closes #1293
  • Loading branch information
baconpaul authored Nov 20, 2019
1 parent 8b3cbe4 commit 4fec801
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/common/gui/CLFOGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,7 @@ void CLFOGui::drawVectorized(CDrawContext* dc)
dc->setFrameColor(VSTGUI::CColor(0xE0, 0x80, 0x00));
dc->drawLine(top0, top1);
dc->drawLine(bot0, bot1);

#if LINUX
dc->setLineWidth(100.0);
#else
dc->setLineWidth(1.3);
#endif
dc->setFrameColor(VSTGUI::CColor(0x00, 0x00, 0, 0xFF));
dc->drawGraphicsPath(path, VSTGUI::CDrawContext::PathDrawMode::kPathStroked, &tfpath );


#if LINUX
dc->setLineWidth(100.0);
Expand All @@ -401,6 +394,17 @@ void CLFOGui::drawVectorized(CDrawContext* dc)
dc->setFrameColor(VSTGUI::CColor(0xB0, 0x60, 0x00, 0xFF));
dc->drawGraphicsPath(eupath, VSTGUI::CDrawContext::PathDrawMode::kPathStroked, &tfpath );
dc->drawGraphicsPath(edpath, VSTGUI::CDrawContext::PathDrawMode::kPathStroked, &tfpath );

#if LINUX
dc->setLineWidth(100.0);
#else
dc->setLineWidth(1.3);
#endif
dc->setFrameColor(VSTGUI::CColor(0x00, 0x00, 0, 0xFF));
dc->drawGraphicsPath(path, VSTGUI::CDrawContext::PathDrawMode::kPathStroked, &tfpath );



dc->restoreGlobalState();
path->forget();
eupath->forget();
Expand Down

0 comments on commit 4fec801

Please sign in to comment.