X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=8f453e2c3f7d85605a5c3261f8fdca207adf0d15;hp=bb2f43b55681e4c2031eb281fb6fad03778a17c7;hb=efda7f7ff333c8aa84af7966e11e2ea070c6aea9;hpb=8a7d4a2d8dcb7ef5375441f42a4a3aeede7680e7 diff --git a/src/editor.c b/src/editor.c index bb2f43b5..8f453e2c 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); @@ -14081,7 +14085,7 @@ void HandleLevelEditorKeyInput(Key key) else if (key == KSYM_Escape) DrawLevelText(0, 0, 0, TEXT_END); } - else if (button_status == MB_RELEASED) + else { int id = GADGET_ID_NONE; int new_element_shift = element_shift;