Skip to content

Commit

Permalink
demo_parametric_curve: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Sep 29, 2023
1 parent 77f3f8a commit 8eaed3b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ void gui()
// // As an illustration of the Immediate Gui paradigm,
if (ImGui::Button("Random")) // this draws a button
{ // and you handle its action immediately!
curve.a = (float)rand() / RAND_MAX * (5.0f - 0.5f) + 0.5f;
curve.b = (float)rand() / RAND_MAX * (65.0f - 55.0f) + 55.0f;
curve.c = (float)rand() / RAND_MAX * (5.0f - 0.5f) + 0.5f;
curve.a = (float)rand() / (float)RAND_MAX * (5.0f - 0.5f) + 0.5f;
curve.b = (float)rand() / (float)RAND_MAX * (65.0f - 55.0f) + 55.0f;
curve.c = (float)rand() / (float)RAND_MAX * (5.0f - 0.5f) + 0.5f;
}
}

Expand Down

0 comments on commit 8eaed3b

Please sign in to comment.