raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=90fb244615e61edc3739216ee400411c69c34ed8

commit 90fb244615e61edc3739216ee400411c69c34ed8
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Jan 3 18:38:43 2020 +0000

    shot - make zoom reset actually go to 1:1 again
---
 src/modules/shot/e_mod_edit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/shot/e_mod_edit.c b/src/modules/shot/e_mod_edit.c
index f71e74a95..ec2c28ba4 100644
--- a/src/modules/shot/e_mod_edit.c
+++ b/src/modules/shot/e_mod_edit.c
@@ -1449,6 +1449,7 @@ crop_move(int x, int y)
 // zoom handling
 #define ZOOM_COUNT 16
 #define ZOOM_DEFAULT 8
+#define ZOOM_NONE 8
 static int zoom = ZOOM_DEFAULT;
 static int zooms[] = { 125, 143, 167, 200, 250, 333, 500, 750,
                        1000,
@@ -1477,7 +1478,7 @@ _cb_tool_zoom_plus(void *data EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED, void *i
 static void
 _cb_tool_zoom_reset(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void 
*info EINA_UNUSED)
 {
-   zoom_set(3);
+   zoom_set(ZOOM_NONE);
 }
 
 static void

-- 


Reply via email to