Commit a4c99f63 authored by Jean-Philippe Andre's avatar Jean-Philippe Andre Committed by Carsten Haitzler (Rasterman)

photocam: Fix key zoom in/out

Zoom +/- doesn't work well as this is a multiplication factor.

Test scenario:
 - elementary_test -to Photocam

Then click on the image, and press + or - on the keyboard.

@fix
parent 685cff04
......@@ -1017,14 +1017,14 @@ _key_action_zoom(Evas_Object *obj, const char *params)
if (!strcmp(dir, "in"))
{
zoom = elm_photocam_zoom_get(obj);
zoom -= 0.5;
zoom /= 1.5;
elm_photocam_zoom_mode_set(obj, ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
elm_photocam_zoom_set(obj, zoom);
}
else if (!strcmp(dir, "out"))
{
zoom = elm_photocam_zoom_get(obj);
zoom += 0.5;
zoom *= 1.5;
elm_photocam_zoom_mode_set(obj, ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
elm_photocam_zoom_set(obj, zoom);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment