Skip to content

Commit

Permalink
abstract_runner: fix dx11 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 12, 2024
1 parent ac2bf15 commit 9b3823b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,11 @@ void AbstractRunner::SetupDpiAwareParams()
if (params.dpiAwareParams.dpiWindowSizeFactor == 0.f)
{
#ifdef HELLOIMGUI_HAS_DIRECTX11
if (params.rendererBackendType == HelloImGui::RendererBackendType::DirectX11)
{
// The current implementation of Dx11 backend does not support changing the window size
params.dpiAwareParams.dpiWindowSizeFactor = 1.f;
}
#endif
params.dpiAwareParams.dpiWindowSizeFactor = mBackendWindowHelper->GetWindowSizeDpiScaleFactor(mWindow);
}
Expand Down

0 comments on commit 9b3823b

Please sign in to comment.