shot - make zoom reset actually go to 1:1 again

This commit is contained in:
Carsten Haitzler 2020-01-03 18:38:43 +00:00
parent 16a065fe2b
commit 90fb244615
1 changed files with 2 additions and 1 deletions

View File

@ -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