From 09de127ca241cb8ca5291ca547e3e1ade4d57cd4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 18 Nov 2021 18:57:43 +0100 Subject: [PATCH] Adapt release notes window size to DPI scaling. --- profiler/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index ad34f3f5..174e9c95 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -916,7 +916,7 @@ static void DrawContents() if( showReleaseNotes ) { assert( updateNotesThread.joinable() ); - ImGui::SetNextWindowSize( ImVec2( 600, 400 ), ImGuiCond_FirstUseEver ); + ImGui::SetNextWindowSize( ImVec2( 600 * dpiScale, 400 * dpiScale ), ImGuiCond_FirstUseEver ); ImGui::Begin( "Update available!", &showReleaseNotes ); if( ImGui::Button( ICON_FA_DOWNLOAD " Download" ) ) {