mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
Slopes of DR and D2R stay constant when SL changes
This commit is contained in:
parent
532d2387c5
commit
d0aaf581f5
1 changed files with 3 additions and 4 deletions
|
@ -447,10 +447,9 @@ void FurnaceGUI::drawFMEnv(unsigned char tl, unsigned char ar, unsigned char dr,
|
||||||
ImGui::RenderFrame(rect.Min,rect.Max,ImGui::GetColorU32(ImGuiCol_FrameBg),true,style.FrameRounding);
|
ImGui::RenderFrame(rect.Min,rect.Max,ImGui::GetColorU32(ImGuiCol_FrameBg),true,style.FrameRounding);
|
||||||
|
|
||||||
//calculate x positions
|
//calculate x positions
|
||||||
float arPos=float(31-ar)/31.0;
|
float arPos=float(31-ar)/31.0; //peak of AR, start of DR
|
||||||
float drPos=arPos+(float(31-dr)/31.0);
|
float drPos=arPos+((sl/15.0)*(float(31-dr)/31.0)); //end of DR, start of D2R
|
||||||
float d2rPos=drPos+(float(31-d2r)/31.0);
|
float d2rPos=drPos+(((15.0-sl)/15.0)*(float(31.0-d2r)/31.0)); //End of D2R
|
||||||
//float rrPos=d2rPos+(float(15-rr)/15.0);
|
|
||||||
float rrPos=(float(15-rr)/15.0);
|
float rrPos=(float(15-rr)/15.0);
|
||||||
|
|
||||||
//shrink all the x positions horizontally
|
//shrink all the x positions horizontally
|
||||||
|
|
Loading…
Reference in a new issue