mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
clutter/actor: Soften the check for guessed scale
In some use cases it's useful to have scaling below 100%. Right now the assert here prevents doing that, so soften it to `0.5` - likely about the lower limit what people would try (and what is exposed by default on KDE). Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/1465 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2263>
This commit is contained in:
parent
b8870a11b8
commit
27cbf7b23d
@ -15838,7 +15838,7 @@ clutter_actor_get_real_resource_scale (ClutterActor *self)
|
|||||||
guessed_scale = clutter_backend_get_fallback_resource_scale (backend);
|
guessed_scale = clutter_backend_get_fallback_resource_scale (backend);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_assert (guessed_scale >= 1.f);
|
g_assert (guessed_scale >= 0.5);
|
||||||
|
|
||||||
/* Always return this value until we compute the correct one later.
|
/* Always return this value until we compute the correct one later.
|
||||||
* If our guess turns out to be wrong, we'll emit "resource-scale-changed"
|
* If our guess turns out to be wrong, we'll emit "resource-scale-changed"
|
||||||
|
Loading…
Reference in New Issue
Block a user