Skip to content

Commit

Permalink
More warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Jan 29, 2024
1 parent b5bd0e3 commit 47310fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/gin_plugin/components/gin_msegcomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void MSEGComponent::mouseDown (const juce::MouseEvent& e)
}
}

lastY = e.y;
lastY = e.position.y;
}

void MSEGComponent::mouseMove (const juce::MouseEvent&)
Expand Down Expand Up @@ -305,8 +305,8 @@ void MSEGComponent::mouseDrag (const juce::MouseEvent& e)
if (draggingPoint < data.numPoints - 1)
maxT = data.points[draggingPoint + 1].time;

p.time = std::clamp (xToTime (e.x), minT, maxT);
p.value = std::clamp (yToValue (e.y), -1.0f, 1.0f);
p.time = std::clamp (xToTime (e.position.x), minT, maxT);
p.value = std::clamp (yToValue (e.position.y), -1.0f, 1.0f);

if (draggingPoint == 0)
{
Expand Down Expand Up @@ -335,7 +335,7 @@ void MSEGComponent::mouseDrag (const juce::MouseEvent& e)
dirty = true;
repaint ();
}
lastY = e.y;
lastY = e.position.y;
}

void MSEGComponent::mouseUp (const juce::MouseEvent& e)
Expand Down

0 comments on commit 47310fa

Please sign in to comment.