diff --git a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp index 31453908..1983f991 100644 --- a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp +++ b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp @@ -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); }