raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=32754cff9f4fa34a9432a902bc552aa38027bed0

commit 32754cff9f4fa34a9432a902bc552aa38027bed0
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Jan 4 16:15:13 2020 +0000

    shot - zoom - go back to 1/4 zoom by default
    
    for fullscreen shots this makes so much more sense.
---
 src/modules/shot/e_mod_edit.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/shot/e_mod_edit.c b/src/modules/shot/e_mod_edit.c
index baa2c9273..fc47155ce 100644
--- a/src/modules/shot/e_mod_edit.c
+++ b/src/modules/shot/e_mod_edit.c
@@ -1448,7 +1448,7 @@ crop_move(int x, int y)
 //////////////////////////////////////////////////////////////////////////////
 // zoom handling
 #define ZOOM_COUNT 16
-#define ZOOM_DEFAULT 8
+#define ZOOM_DEFAULT 4
 #define ZOOM_NONE 8
 static int zoom = ZOOM_DEFAULT;
 static int zooms[] = { 125, 143, 167, 200, 250, 333, 500, 750,
@@ -1792,8 +1792,8 @@ ui_edit(Evas_Object *window, Evas_Object *o_bg, E_Zone 
*zone EINA_UNUSED,
    evas = evas_object_evas_get(win);
    evas_object_event_callback_add(win, EVAS_CALLBACK_DEL, _cb_win_del, NULL);
 
-   w = sw / 4;
-   if (w < 220) w = 220;
+   w = (sw * zooms[zoom]) / 1000;
+   if (w < ELM_SCALE_SIZE(400)) w = 400;
    h = (w * sh) / sw;
 
    if (!ec)

-- 


Reply via email to