zoom: Rename zoom_area_center_from_pointer to zoom_area_center_from_point
It doesn't do anything with a pointer, and zoom can be initiated by the
keyboard, so the name was a little confusing.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
diff --git a/src/zoom.c b/src/zoom.c
index 878ecc2..6305427 100644
--- a/src/zoom.c
+++ b/src/zoom.c
@@ -69,8 +69,8 @@
}
static void
-zoom_area_center_from_pointer(struct weston_output *output,
- wl_fixed_t *x, wl_fixed_t *y)
+zoom_area_center_from_point(struct weston_output *output,
+ wl_fixed_t *x, wl_fixed_t *y)
{
float level = output->zoom.spring_z.current;
wl_fixed_t offset_x = wl_fixed_from_int(output->x);
@@ -96,7 +96,7 @@
level == 0.0f)
return;
- zoom_area_center_from_pointer(output, &x, &y);
+ zoom_area_center_from_point(output, &x, &y);
global_x = wl_fixed_to_double(x);
global_y = wl_fixed_to_double(y);