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 f26f661 commit d260084
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 @@ -763,7 +763,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 d260084

Please sign in to comment.