mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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( out.second->entered && out.second->scale > max ) max = out.second->scale;
|
||||||
}
|
}
|
||||||
|
if( s_maxScale != max ) tracy::s_wasActive = true;
|
||||||
s_maxScale = max;
|
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 )
|
static void SurfacePreferredBufferScale( void*, struct wl_surface* surface, int32_t scale )
|
||||||
{
|
{
|
||||||
|
if( s_maxScale != scale ) tracy::s_wasActive = true;
|
||||||
s_maxScale = scale;
|
s_maxScale = scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user