X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=acre-x.c;h=c375c36efddee95a1d7afd4e74262a3d740f4cbd;hb=refs%2Fheads%2Fmaster;hp=194926a0ae7e8502d1a75f2903698950c74e486e;hpb=fdff840db02a5d403e1423b070fd43cbbc52a07c;p=acre diff --git a/acre-x.c b/acre-x.c index 194926a..c375c36 100644 --- a/acre-x.c +++ b/acre-x.c @@ -154,7 +154,7 @@ handle_events(Display *dpy, Window window, Visual *visual, } else if (keycode == minus_code) { - shift = (1- 2*ZOOM) * (x_max - x_min); + shift = (ZOOM/(1 - 2 * ZOOM)) * (x_max - x_min); x_min -= shift; x_max += shift; }