Add DPI change notification method in View.

This commit is contained in:
Bartosz Taudul
2026-07-18 13:13:03 +02:00
parent 3608d0c271
commit 562fea5564
3 changed files with 8 additions and 0 deletions

View File

@@ -198,6 +198,9 @@ static void SetupDPIScale()
prevScale = scale;
auto ctx = ImGui::GetCurrentContext();
for( auto& w : ctx->Windows ) ScaleWindow( w, ratio );
auto viewPtr = view.load( std::memory_order_acquire );
if( viewPtr ) viewPtr->DpiScaleChanged();
}
static int IsBusy()