mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-01 04:21:44 +00:00
GUI: one more visualizer fix
This commit is contained in:
parent
5af0292f69
commit
4ce28c0a05
1 changed files with 13 additions and 15 deletions
|
@ -719,7 +719,7 @@ void FurnaceGUI::drawPattern() {
|
|||
|
||||
// note slides
|
||||
ImVec2 arrowPoints[7];
|
||||
for (int i=0; i<chans; i++) {
|
||||
if (e->isPlaying()) for (int i=0; i<chans; i++) {
|
||||
if (!e->song.chanShow[i]) continue;
|
||||
DivChannelState* ch=e->getChanState(i);
|
||||
if (ch->portaSpeed>0) {
|
||||
|
@ -727,7 +727,6 @@ void FurnaceGUI::drawPattern() {
|
|||
col.w*=0.2;
|
||||
float width=patChanX[i+1]-patChanX[i];
|
||||
|
||||
if (e->isPlaying()) {
|
||||
particles.push_back(Particle(
|
||||
pitchGrad,
|
||||
(ch->portaNote<=ch->note)?ICON_FA_CHEVRON_DOWN:ICON_FA_CHEVRON_UP,
|
||||
|
@ -740,7 +739,6 @@ void FurnaceGUI::drawPattern() {
|
|||
255.0f,
|
||||
15.0f
|
||||
));
|
||||
}
|
||||
|
||||
if (width>0.1) for (float j=-patChanSlideY[i]; j<ImGui::GetWindowHeight(); j+=width*0.7) {
|
||||
ImVec2 tMin=ImVec2(off.x+patChanX[i]-scrollX,off.y+j);
|
||||
|
|
Loading…
Reference in a new issue