From: Holger Schemel Date: Sun, 3 Mar 2019 17:08:35 +0000 (+0100) Subject: added cycling through all zoom tilesizes in editor when using touch device X-Git-Tag: 4.1.3.0~49 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1cc6b51080c580352aa808bf73ef08b5226664e7;p=rocksndiamonds.git added cycling through all zoom tilesizes in editor when using touch device --- diff --git a/src/editor.c b/src/editor.c index bb2f43b5..312f0395 100644 --- a/src/editor.c +++ b/src/editor.c @@ -13782,6 +13782,10 @@ static void HandleControlButtons(struct GadgetInfo *gi) button == 2 ? ed_tilesize_default : button == 3 ? ed_tilesize / 2 : ed_tilesize); + // when using touch device, cycle through all zoom tilesizes + if (runtime.uses_touch_device && ed_tilesize > TILESIZE) + ed_tilesize = MICRO_TILESIZE; + // limit zoom level by upper and lower bound ed_tilesize = MIN(MAX(MICRO_TILESIZE, ed_tilesize), TILESIZE);