mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-30 04:25:27 +00:00
Add DPI change notification method in View.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1526,6 +1526,10 @@ bool View::WasActive() const
|
||||
!m_worker.IsBackgroundDone();
|
||||
}
|
||||
|
||||
void View::DpiScaleChanged()
|
||||
{
|
||||
}
|
||||
|
||||
void View::AddLlmAttachment( const nlohmann::json& json )
|
||||
{
|
||||
#ifndef __EMSCRIPTEN__
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user