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
1 changed files with 1 additions and 1 deletions
|
@ -15838,7 +15838,7 @@ clutter_actor_get_real_resource_scale (ClutterActor *self)
|
|||
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.
|
||||
* If our guess turns out to be wrong, we'll emit "resource-scale-changed"
|
||||
|
|
Loading…
Reference in a new issue