mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Trigger redraw when DPI changes.
Previously the wayland surface was not updated, because there were no surface commits performed due to power saving routines.
This commit is contained in:
parent
8ebe62ed85
commit
4fbef01729
@ -220,6 +220,7 @@ static void RecomputeScale()
|
||||
{
|
||||
if( out.second->entered && out.second->scale > max ) max = out.second->scale;
|
||||
}
|
||||
if( s_maxScale != max ) tracy::s_wasActive = true;
|
||||
s_maxScale = max;
|
||||
}
|
||||
|
||||
@ -644,6 +645,7 @@ static void SurfaceLeave( void*, struct wl_surface* surface, struct wl_output* o
|
||||
|
||||
static void SurfacePreferredBufferScale( void*, struct wl_surface* surface, int32_t scale )
|
||||
{
|
||||
if( s_maxScale != scale ) tracy::s_wasActive = true;
|
||||
s_maxScale = scale;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user