Skip to content

Commit

Permalink
avoid narrowing conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Oct 17, 2024
1 parent fb853ce commit 57650e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Gui/OverlayMessageController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void OverlayMessageController::processLoadingBar()

auto constexpr N = 40;
for (int i = 0; i < N; ++i) {
auto amplitude1 = sin(toFloat(i) * 10.0f / toFloat(N) - duration / 240.0f) / 1;
auto amplitude2 = sin(toFloat(i) * 14.0f / toFloat(N) - duration / 135.0f) / 1;
auto amplitude1 = sinf(toFloat(i) * 10.0f / toFloat(N) - duration / 240.0f);
auto amplitude2 = sinf(toFloat(i) * 14.0f / toFloat(N) - duration / 135.0f);
//auto hue = toFloat((i * 1000 / N + toInt(duration)) % 3000) / 4500.0f;
//hue = hue < 0.33f ? 0.66f + hue : 0.66f + 0.66f - hue;

Expand Down

0 comments on commit 57650e9

Please sign in to comment.