Skip to content

Commit

Permalink
AdjustWindowBoundsAfterCreation_IfDpiChangedBetweenRuns: lastRunDpiWi…
Browse files Browse the repository at this point in the history
…ndowSizeFactor=1 if not present
  • Loading branch information
pthom committed Jul 5, 2024
1 parent 6027062 commit 96d4544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void AbstractRunner::AdjustWindowBoundsAfterCreation_IfDpiChangedBetweenRuns()

std::optional<float> lastRunDpiWindowSizeFactorOpt = HelloImGuiIniSettings::LoadLastRunDpiWindowSizeFactor(IniSettingsLocation(params));
if (!lastRunDpiWindowSizeFactorOpt.has_value())
return;
lastRunDpiWindowSizeFactorOpt = 1.f;

float lastRunDpiWindowSizeFactor = lastRunDpiWindowSizeFactorOpt.value();
float currentDpiWindowSizeFactor = params.dpiAwareParams.dpiWindowSizeFactor;
Expand Down

0 comments on commit 96d4544

Please sign in to comment.