Add DPI change notification method in View.

This commit is contained in:
Bartosz Taudul
2026-07-18 13:17:42 +02:00
parent 3608d0c271
commit 562fea5564
3 changed files with 8 additions and 0 deletions
+3
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()
+4
View File
@@ -1526,6 +1526,10 @@ bool View::WasActive() const
!m_worker.IsBackgroundDone();
}
void View::DpiScaleChanged()
{
}
void View::AddLlmAttachment( const nlohmann::json& json )
{
#ifndef __EMSCRIPTEN__
+1
View File
@@ -151,6 +151,7 @@ public:
bool Draw();
bool WasActive() const;
void DpiScaleChanged();
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
void ViewSource( const char* fileName, int line );