clutter-backend: Default to scale 1

So we at least don't trigger assertions for invalid scales of zero.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2957

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1349
This commit is contained in:
Daniel van Vugt 2020-07-03 18:05:51 +08:00 committed by verdre
parent 2f1f47d257
commit dbff32ec5c

View File

@ -601,6 +601,8 @@ clutter_backend_init (ClutterBackend *self)
self->units_serial = 1;
self->dummy_onscreen = NULL;
self->fallback_resource_scale = 1.f;
}
void