summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-29 13:05:22 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-29 13:05:22 -0400
commit1570f05656a9f53f42d6a14b8a6a11a2ac4eddf1 (patch)
treeb157a3cd5359ec529aa234f20f74c93080d77f3b
parent9607e4ae9e3ae44345a806851a58493192845c3c (diff)
wip
-rw-r--r--comp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/comp.c b/comp.c
index 85eff19..e708eef 100644
--- a/comp.c
+++ b/comp.c
@@ -5186,3 +5186,19 @@ comp_rotate(Evas_Object *obj, Comp_Rotation rot, Eina_Bool rtl)
5186 EINA_LIST_FOREACH(c->output_resources, l, res) 5186 EINA_LIST_FOREACH(c->output_resources, l, res)
5187 output_resize(c, res); 5187 output_resize(c, res);
5188} 5188}
5189
5190void
5191comp_scale_set(Evas_Object *obj, double scale)
5192{
5193 Comp *c;
5194 Eina_List *l;
5195 struct wl_resource *res;
5196
5197 if (!eina_streq(evas_object_type_get(obj), "comp")) abort();
5198 c = evas_object_smart_data_get(obj);
5199 c->scale = scale;
5200
5201 EINA_LIST_FOREACH(c->output_resources, l, res)
5202 if (wl_resource_get_version(res) >= WL_OUTPUT_SCALE_SINCE_VERSION)
5203 wl_output_send_scale(res, lround(c->scale));
5204}