clutter: Change stage view scale to be float

To support fractional scaling, change the stage view scale to be a
float instead of an int. Also change the places where it is retrieved
and used when scaling things.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
Jonas Ådahl
2017-05-25 15:54:37 +08:00
parent a3d63d0ac0
commit c2e49f1bb5
6 changed files with 36 additions and 21 deletions

View File

@@ -1743,7 +1743,7 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
view = g_object_new (META_TYPE_RENDERER_VIEW,
"layout", &logical_monitor->rect,
"scale", scale,
"scale", (float) scale,
"framebuffer", onscreen,
"offscreen", offscreen,
"logical-monitor", logical_monitor,