From f77b401b278dd2e2a91d316e0c0247d71353fee9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 11 Mar 2015 23:39:20 +0100 Subject: [PATCH] fixed (swapped) editor zoom directions for left and right mouse button --- src/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index d2e86eb9..353170d8 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11331,9 +11331,9 @@ static void HandleControlButtons(struct GadgetInfo *gi) case GADGET_ID_ZOOM: // zoom level editor tile size in or out (or reset to default size) - ed_tilesize = (button == 1 ? ed_tilesize / 2 : + ed_tilesize = (button == 1 ? ed_tilesize * 2 : button == 2 ? DEFAULT_EDITOR_TILESIZE : - button == 3 ? ed_tilesize * 2 : ed_tilesize); + button == 3 ? ed_tilesize / 2 : ed_tilesize); // limit zoom level by upper and lower bound ed_tilesize = MIN(MAX(MICRO_TILESIZE, ed_tilesize), TILESIZE); -- 2.34.1