projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85019a0
)
added cycling through all zoom tilesizes in editor when using touch device
author
Holger Schemel
<info@artsoft.org>
Sun, 3 Mar 2019 17:08:35 +0000
(18:08 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sun, 3 Mar 2019 17:17:42 +0000
(18:17 +0100)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index bb2f43b55681e4c2031eb281fb6fad03778a17c7..312f0395ee3b447700f6c1fa9f7739c2a2234a37 100644
(file)
--- 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);