Skip to content

Commit

Permalink
Gui: Fix logarithmic Sliders
Browse files Browse the repository at this point in the history
Imgui 1.78 broke the float from SliderFloat
ocornut/imgui#3361
  • Loading branch information
bwrsandman committed Nov 15, 2021
1 parent fd9ff5b commit 3ab61bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ bool Gui::ShowMenu(Game& game)
{
game.SetGameSpeed(Game::kTurnDurationMultiplierFast);
}
if (ImGui::SliderFloat("Multiplier", &multiplier, 1.0f / 10.0f, 10.0f, "%.3f", 2.0f))
if (ImGui::SliderFloat("Multiplier", &multiplier, 1.0f / 10.0f, 10.0f, "%.3f", ImGuiSliderFlags_Logarithmic))
{
game.SetGameSpeed(multiplier);
}
Expand Down

0 comments on commit 3ab61bd

Please sign in to comment.