This commit is contained in:
Arnaud Jamin
2023-10-10 17:43:42 -04:00
parent b4ee2da00a
commit 7094dbf1f5
2 changed files with 26 additions and 2 deletions
@@ -308,7 +308,7 @@ void UCogWindowManager::DrawMainMenu()
ImGui::SameLine();
FCogWindowWidgets::PushStyleCompact();
FCogWindowWidgets::SetNextItemToShortWidth();
ImGui::SliderFloat("", &DPIScale, 0.5f, 2.0f, "%.1f");
ImGui::SliderFloat("", &DPIScale, 0.5f, 2.0f, "%.2f");
if (ImGui::IsItemDeactivatedAfterEdit())
{
bRefreshDPIScale = true;
@@ -380,7 +380,7 @@ void UCogWindowManager::TickDPI()
const bool IsControlDown = ImGui::GetIO().KeyCtrl;
if (IsControlDown && MouseWheel != 0)
{
DPIScale = FMath::Clamp(DPIScale + (MouseWheel > 0 ? 0.05f : -0.05f), 0.1f, 2.0f);
DPIScale = FMath::Clamp(DPIScale + (MouseWheel > 0 ? 0.05f : -0.05f), 0.5f, 2.0f);
bRefreshDPIScale = true;
}