forked from enlightenment/enlightenment
shot - zoom - go back to 1/4 zoom by default
for fullscreen shots this makes so much more sense.
This commit is contained in:
parent
f32ac2d1a9
commit
32754cff9f
|
@ -1448,7 +1448,7 @@ crop_move(int x, int y)
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// zoom handling
|
// zoom handling
|
||||||
#define ZOOM_COUNT 16
|
#define ZOOM_COUNT 16
|
||||||
#define ZOOM_DEFAULT 8
|
#define ZOOM_DEFAULT 4
|
||||||
#define ZOOM_NONE 8
|
#define ZOOM_NONE 8
|
||||||
static int zoom = ZOOM_DEFAULT;
|
static int zoom = ZOOM_DEFAULT;
|
||||||
static int zooms[] = { 125, 143, 167, 200, 250, 333, 500, 750,
|
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 = evas_object_evas_get(win);
|
||||||
evas_object_event_callback_add(win, EVAS_CALLBACK_DEL, _cb_win_del, NULL);
|
evas_object_event_callback_add(win, EVAS_CALLBACK_DEL, _cb_win_del, NULL);
|
||||||
|
|
||||||
w = sw / 4;
|
w = (sw * zooms[zoom]) / 1000;
|
||||||
if (w < 220) w = 220;
|
if (w < ELM_SCALE_SIZE(400)) w = 400;
|
||||||
h = (w * sh) / sw;
|
h = (w * sh) / sw;
|
||||||
|
|
||||||
if (!ec)
|
if (!ec)
|
||||||
|
|
Loading…
Reference in New Issue